intel: performance and memory bugs in INTEL_MEASURE
@fjdegroo reported a two bugs that occur when collecting timing data with INTEL_MEASURE:
- On iris, memory is leaked because data structures are not re-used or freed
- On anv, workloads that use a large number of small command buffers pay a heavy penalty for allocations of data structures storing timing data.