use the ISC_REFCOUNT implementation for dns_zone_attach() and _detach(). (this applies only to external zone references, not to dns_zone_iattach() and dns_zone_idetach().) use dns_zone_ref() where previously a dummy zone object had been used to increment the reference count.