read write spinlock implement in C++ 11