Making sure that LHM will retry the atomic switch on lock wait timeouts

Making sure other MySQL errors are NOT retried

Syncing the test

Have a finite amount of retries then give up

Preventing possible raceiness

fix broken spec
Merge pull request #2 from Shopify/retry_on_lock_wait_to

Retry  when doing an atomic rename