Fixed critical race condition sometimes blocking the benchmark