Fix compile warning and timeout message logic in io_stream.c

idk. I think this code was just a duplicate of a previous check for legacy reason?
I'm sure it can be prettified. The onlything it is doing here is figuring out what value to display in the error message.
So... Maybe in the php_stream_set_option() block we should set the value to whatever in the else{} block, and remove this entirely?