[CORE] net: Minor bug fix in netswitch_bh_ring_port_flush()

Always check xfer pointer obtained from per-CPU xfer ring
before accessing it to avoid potential NULL pointer access.

Signed-off-by: Anup Patel <anup@brainfault.org>