[PATCH] test/distro: Avoid race between display of ns_msg and netcat exiting