LOCK TABLES
`table` WRITE,
`table` AS `t` WRITE,
`table2` WRITE,
`table2` AS `t2` WRITE
If a session begins a transaction (for example, with START TRANSACTION), an implicit UNLOCK TABLES is performed, which causes existing locks to be released.