[PATCH 5.13 234/266] tracing: Simplify & fix saved_tgids logic