Fix intermittent test failures in schedule timer tests.