win32: implemented timeouts in serial socket reads