a lock can be used to keep a door shut