Enforce sync I/O when it's being assumed.

Not doing so was causing the string to write to get freed before it
ever got written. With this, running tests under prove works reliably
for Rakudo on Moar on Windows. Just got lucky on other OSes, I guess.