Fix compile warning and timeout message logic in io_stream.c

This is not the same as it was.

If
options->socketTimeoutMS = 42;
FG(default_socket_timeout) = 60
socketTimeoutMS = 42

and the previous check becomes:
timeout > 0 && 42 != timeout
and the new check:
timeout && timeout != 42

If however
options->socketTimeMS = 0
FG(default_socket_timeout) = 60
socketTimeoutMS = 60

and the previous check becomes:
timeout > 0 && 0 != timeout
and the new check:
timeout && timeout != 60