[posix] Implement new PosixFile

This a counterpart for PR #4984.
Implemented direct file manipulation instead of some strange `shared pointer -> win32 API emulation -> win32 API emulation -> Posix API` chains.
Run-tested on OS X.