tipc: fix memory leak during module removal