net: unref stream after using it

https://bugs.launchpad.net/bugs/1224410