Fix startup race in the tests.
Fix startup race in the tests.

Pub pipes might not be connected yet.  Do the dial from the
pub side synchronously, and we can be sure no data will be lost.

nanomsg/nng,nanomsg/nng,nanomsg/nng,nanomsg/nng