Update mock/stub usage to remove deprecation warnings
Remove unused stub_libzmq method

This method has the old usage of mock/stub! but was generating no warnings.  A
search through the code demonstrates it is not used anywhere, so remove.