broker: max_tunnels is now a member variable - fix a crash on shutdown