Implemented temporary 'commands out of sync' fix for mysqlnd handler.