ping: Don't mix stdio and direct writes
POSIX does not allow mixing direct writes to STDOUT_FILENO with stdio
operations on stdout like we do here. More importantly, it causes
tests to fail randomly (or not-so-randomly after I added an fflush in
a previous commit).
MFC after: 1 week
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D57884