core/socket: fixed bug (timeout in win32)