tracing: Get trace_array ref counts when accessing trace files