Use std::atomic instead of boost::atomic.