Flush stdout after writeln (fixes issue #13241)

Followup to pull https://github.com/D-Programming-Language/phobos/pull/2334

Fixes: https://issues.dlang.org/show_bug.cgi?id=13241

Not sure if the `.flush` call should be inside a version block for DMC, since apparently this isn't an issue on other platforms.
The fix I suggested should work and we can move forward with this.