stream: apply timeout_msec to poll() timeout.