Alternative dhandle refcount fix