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

Second attempt, see https://github.com/D-Programming-Language/phobos/pull/2396