Used a std::atomic for StoreSession::_units_stores and _unit_count