test_threading_local.py: insert extra gc.collect()