bpf: Fix race between btf_put and btf_idr walk.