MySQL: Retry on ER_LOCK_WAIT_TIMEOUT.