Mock calls to time.sleep in retry handler tests

The time/sleep calls weren't being checked anyways so this
just speeds up the test suite.  Otherwise these take ~10secs
to run.