Use std::atomic in clPtr