Add LockProtocol

Used by staff for locking tests.