Better handle Read/Write errors in PosixFile and Win32File

Invalidate io pointer on Win32 as it's unknown where read/write was aborted, force update io pointer on Posix for `posix_fadvise`.