implement win32 locking
mingw do not have macros for transforming process exit status
win32 fsync
port pwrite to win32