move a function out of threaded_stress_test_helpers and to the test that uses it