m_spanningtree Fix cleanup of connections when unloading a module that provides an IOHook