Before, the m_refcount was returned instead of count, which led me to think that it should return the current ref_count ( since m_refcount could have been increased/decreased again after the unlock() ), instead of the (variable) count in this method.
This is the expected behavior, correct?