A lock prevents something from being opened.