[PATCH 5.4 499/658] tracing/hist: Fix out-of-bound write on action_data.var_ref_idx