[PATCH 4.19.y v6 2/2] tracing: Use var_refs[] for hist trigger reference checking