Lock only on untrusted networks