std: Work around some failing 'run' tests when valgrinding. #7224

Under valgrind on 64->32 cross compiles the dynamic linker is emitting
some error messages on stderr, which interferes with the tests that
are checking stderr.