common/RefCountedObject: fix use-after-free in debug print

We could race with another thread that deletes this right after we call 
dec().  Our access of cct would then become a use-after-free.  Valgrind 
managed to turn this up.

Copy it into a local variable before the dec() to be safe!

Signed-off-by: Sage Weil <sage@redhat.com>