Locks this table in this schema using a read/write pessimistic lock until the end of the current transaction.
Note that unlock() still needs to be called even if your database unlocks the table implicitly (in which
case doUnlock() may be a no-op) in order to maintain the lock count correctly.
unlock
voidunlock()
For databases that require an explicit unlocking, not an implicit end-of-transaction one.