fix(lib/daemon): correctly wait for slow-starting daemon port
Previously, if the daemon took a bit to open its port, the daemon_wait_for_port function would fail on the first connection-refused error. Now it ignores that failure until timeout elapses.
Alas, could not think of a simple way to test for this.