Test-only: the current outstanding-handle count. Do not use in production code — it exists so tests can assert that use releases its reference (returns to 0) even when the callback throws.
static int get refCountForTest => _refCount;