What you mean is the FRP lock and it's not local because you have to log into a Google account to complete activation of the phone. You can factory reset or change ROMs or do whatever you want and the phone will still refuse to work until you log in using the last Google account the device had.