[Python-checkins] bpo-31069, test_multiprocessing: Fix dangling process (#3103)