Uses an explicit fsync() in Windows.

This should allow a more precise error detection.