Refcount context internals.