ARROW-14053: [C++][CSV] Use atomic counter for async tests
ARROW-14053: [C++][CSV] Use atomic counter for async tests

Closes #11198 from n3world/ARROW-14053-use_atomic

Authored-by: Nate Clark <4f3407de78bccc8cc160ee4d278d5efe7162e6b5@neworld.us>
Signed-off-by: Sutou Kouhei <73218711cdd5d5c30ac66da3cc4d9d9204caf34b@clear-code.com>

apache/arrow,wesm/arrow,apache/arrow,kou/arrow,laurentgo/arrow,icexelloss/arrow,kou/arrow,kou/arrow,laurentgo/arrow,icexelloss/arrow,apache/arrow,wesm/arrow,wesm/arrow,kou/arrow,icexelloss/arrow,kou/arrow,wesm/arrow,kou/arrow,kou/arrow,icexelloss/arrow,icexelloss/arrow,apache/arrow,laurentgo/arrow,kou/arrow,laurentgo/arrow,icexelloss/arrow,apache/arrow,laurentgo/arrow,apache/arrow,laurentgo/arrow,wesm/arrow,wesm/arrow,laurentgo/arrow,apache/arrow,wesm/arrow,wesm/arrow,kou/arrow,wesm/arrow,icexelloss/arrow,laurentgo/arrow,apache/arrow,wesm/arrow,apache/arrow,laurentgo/arrow,apache/arrow,apache/arrow,laurentgo/arrow,icexelloss/arrow,kou/arrow,wesm/arrow,laurentgo/arrow,icexelloss/arrow,icexelloss/arrow,laurentgo/arrow,wesm/arrow,icexelloss/arrow,kou/arrow,kou/arrow,icexelloss/arrow,wesm/arrow,kou/arrow,apache/arrow,laurentgo/arrow,wesm/arrow,laurentgo/arrow,apache/arrow,apache/arrow,icexelloss/arrow,laurentgo/arrow,kou/arrow,icexelloss/arrow