a lock can prevents someone from opening something