[PATCH openEuler-22.09 238/379] bpf: Factor out bpf_spin_lock into helpers.