He put the key in the lock.
A lock is a mechanism used to synchronize different processing threads, with set limits to avoid unlimited accessibility of a certain resource within a computing environment.
Northwestern Journal of Technology and Intellectual Property.