Failsafe lock removal