benchmark: fix data races