this don't work too:
LOCK TABLE t WRITE;
BEGIN;
SELECT @@in_transaction; (return 1)
UNLOCK TABLES;
SELECT @@in_transaction; (return 1)

maybe a wrong documentation 'bug'