Transaction MySQL

SELECT IS_FREE_LOCK('lock1');