net/bonding: fix port ID check