Adjust some timeout value and correct the conditional checking for private DNS waiting mechanism. Also move the fail() statement from callback thread to test thread. It is used to avoid the test process crashing. Bug: 148471807 Test: atest DnsResolverTest Change-Id: I244cefeae97fe99838d1c72d867c1d7a1a7d5e87