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