[vfs] PosixFile: better handle errors on Read/Write
[vfs] Win32File: better handle errors on Read/Write
Merge pull request #5465 from Karlson2k/vfs_better_hadle_io_errors

Better handle Read/Write errors in PosixFile and Win32File