Restore Lock before unlock