threads: make one error more specific

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
ping_test: fix argc corruption and make output configurable

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>