kernel: fix crash in flow offload code when cleaning up unregistered hooks