Hold srv.lock while calling SetReadDeadline (#780)
Hold srv.lock while calling SetReadDeadline (#780)

* Hold srv.lock while calling SetReadDeadline

* Only hold the read lock in readTCP and readUDP

miekg/dns