[PATCH 5.12 210/242] tracing: Simplify & fix saved_tgids logic