Fix race in test_common.