fix Issue 13241 - [REG2.067a] writeln no longer flushes stdout

https://issues.dlang.org/show_bug.cgi?id=13241

Second attempt, see https://github.com/D-Programming-Language/phobos/pull/2396