intel/perf: move query_mask and location out of gen_perf_query_counter