bpo-30727: Fix a race condition in test_threading. (#2334)

1 file changed