full code audit of all atomics usage

every load/store of every memory location accessed by
libatomic_ops needs read/written using its macros...

fixes --optimized threads.t on msvc64