Make FSFileHandle always use Windows handles

Switch FSFileHandle over to WinAPI for open/close/write.

Add sanity checks to FileHandle_do_open.

Fix minor bug in Unix Write method (-1 return value was added to file
length). Make Windows Read method use synchronous API and add an extra
check for unexpected EOF.

Fixes LUCY-321.
6 files changed