tsan: add stats and per-cpu struct