Simplify Stream socket implementation.

from: https://github.com/zeromq/libzmq/pull/594