High-efficiency thermal switch based on topological Josephson junctions