Issue #21061: correctly note redirect_stdout is reentrant
Merge issue #21061 fix from 3.4