it is not thread safe to reset the refcount when it in the link