Ensure usage tests have a terminal on stdin

Subcommands (starting with samtools stats) given no arguments choose
whether to filter stdin or to display their usage depending on
isatty(STDIN_FILENO).  When testing that usage messages are produced,
ensure commands get a terminal on stdin; otherwise skip the tests
if a terminal cannot be arranged.  Fixes #300.