`FederationClient.get_room_hierarchy()` caches its return values, so refactor the code to avoid modifying the returned room summary.