fix small TSan complaint

This was the only thing that TSan complained about during my testing.