Address test_zmq setup/teardown races

Each test now consumes a new port number (9500+),
and socket directory based on an auto-incrementing
global counter (TESTCNT).

Also makes minor cleanup to test receiver setup logic.

fixes bug 1096223

Change-Id: Ie6a88c535c81f2fc12b97d32c2674a6184325d2a