daemon/worker: deduplicate inbound queries
many clients do frequent retransmits of the query to avoid network losses and get better service, but then fail to work properly when a resolver answers SERVFAIL to some of them because of the time limit and some of them NOERROR. it's also a good idea to avoid wasting time tracking pending tasks to solve the same thing.