A man in his 20s who threw a bottle at Jerusalem police enforcing lockdown rules on Purim night has handed himself over.