Use atomics to generate the persistent id counter, instead of fetch_and_add.
Use atomics to generate the persistent id counter, instead of fetch_and_add.

HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit