Fix build error on MySQL

TABLE_SHARE.LOCK_share is defined in only MariaDB.