tcp: Use rw_timeout for setting the connect/listen timeouts