Check existence of key_TABLE_SHARE_LOCK_ha_data

It affects Debian squeeze/lucid and CentOS 6
because MySQL 5.1.x series which lacks that variable are adopted.