Reduce connect_timeout by elapsed time when retrying.

If a signal interrupts mysql_real_connect, then using the original
connect_timeout would allow the connect method to take longer than
connect_timeout, so reduce by the elapsed time.