Use sleep_ms instead of select in httpfetch when max_fd == -1, fixes WSAEINVAL