Fixed disposing of resolver->references in destroy() function

77 jobs for !3020 with 1472-threadsanitizer-lock-order-inversion-potential-deadlock-dns_resolver_createfetch-vs in 31 minutes and 44 seconds (queued for 5 seconds)
merge request