Don't reschedule when writing to stdout.

Let's still capture the output, though.  I expect this to be the issue causing warnings in #3669, but as far as I understand it still will hang without #5841 merged.

-[Unknown]