The gallery lock cannot be removed using standard procedures of unlocking. The phone needs to be connected to an OEM box which can crack the code without damaging the files stored on the phone. For this job, you need to take the phone to a phone service shop.