A local label that only connects to other labels or hierarchical sheet pins without any component pin on the same sheet serves no local purpose and is likely mislabeled. Extend the existing bus-member check to all local labels so that ercCheckLabels() flags these cases as ERCE_LABEL_NOT_CONNECTED. The allPins > 1 guard prevents double-reporting with ERCE_LABEL_SINGLE_PIN which already covers the allPins == 1 case. Fixes https://gitlab.com/kicad/code/kicad/-/issues/23346