zeromq socket pinned to the thread that created it, see #2863

(cherry picked from commit 63f0021ed015eb35153e8a9826d4ddbc8aa96a37)