[Reg] 2nd try fix Issue 13241 - writeln no longer flushes stdout

This is the fix I believe is better.

fix https://issues.dlang.org/show_bug.cgi?id=13241

See also https://github.com/D-Programming-Language/phobos/pull/2396