NMS-6825 wait for full DNS server startup

Fix a potential race condition by waiting for DNS threads to fully
come up before start() returns.