Use std::atomic
Drop iv::core::ScopedPtr