a lock can be used to keep something cloesd