net: dsa: properly check for the bridge_leave methods in dsa_switch_bridge_leave()