[PATCH 5.10 422/509] tracing/histograms: Add histograms to hist_vars if they have referenced variables