bpf: Fix slot type check in check_stack_write_var_off