tc: properly initialise the path_costs field in a new tc