A lock prevents someone from opening something.