Add atomic based on boost::shared_ptr