test/net/dns.cpp: tolerate occasional losses

Prodded by my crappy home WiFi connection, that keeps losing
packets so that that specific test fails 33% times :^).