Issue #22042: Fix test_signal on Windows