Issue #7042: Use a better mechanism for testing timers in test_signal.