[PATCH 5.4.y] kprobes: Fix possible use-after-free issue on kprobe registration