spf: safer checking against LINK_COST_BROKEN and ROUTE_COST_BROKEN