kernel: fix crash in flow offload when removing net devices