mingw: use _commit to implement fsync