Implement proper reference counting for dns_keyfileio_t [v9.16]
Instead of relying on hash table search when using the keys, implement a proper reference counting in dns_keyfileio_t objects, and attach/detach the objects to the zone.
(cherry picked from commit 79115a0c)
Closes #3731 (closed)