TransactionalLock implementation.