test_retry: Centralize time.sleep setup within a fixture
This monkeypatches the internal sleep function used to not wait. This kept the
previous behavior. It changes the implementation to monkeypatch though. This
also centralizes within a fixture.
This avoids repeating setup. The previous implementation cluttered the tests
body instruction with internal implementation details.