Inherited from libguestfs, we wrote valgrind log files into the tmp/ directory during tests. However this makes it very difficult to connect a particular log file to a particular failing test. As with nbdkit let's just write the valgrind output to stderr, where it will end up in the test log file (ie. tests/test-suite.log or tests/*.log). I also adjusted the valgrind parameters so they more closely match those used by nbdkit.