Document the locking protocol.