a lock can prevents something from being opened