Attempt to work around xp_mysql bug until xp_mysql is replaced.

If a query needs a reconnect, sometimes xp_mysql gets into a bad
state.  Try to avoid the first query failing and triggering this
condition.