SpinLock自旋锁类 基于std::atomic_bool实现,指定原子操作的内存序, 参考基于std::atomic_flag的实现 参考 C++并发编程实战, 5.2.2章节, https://github.com/subjam/concurrency-in-action