Use unique() instead of use_count() for a std::shared_ptr

A possible optimization.