stream: don't close underlying socket when creating a stream from it