a lock is used to keep a door shut