Syntax options:
WAIT | NOWAIT | DEFAULT WAIT
Specifies what the LOCK TABLE statement does when it encounters
a locked table. If you specify WAIT, the statement waits for
other transactions to complete and then proceeds. If you specify
NOWAIT, your transaction returns an error message when it
encounters a locked table. If you specify DEFAULT WAIT, then
the lock mode specified for the current transaction is used.
If you specify a different lock mode than was specified for the
transaction, the mode you specify with the LOCK TABLE statement
takes precedence, unless the table is already reserved.
The WAIT clause is the default.