@ben: in that case you should do the refcount decrease using the (atomic) helpers and passing a free callback, to ensure it doesn't race.