net/bonding: fix socket ID check