[PATCH 5.10 190/215] tracing: Simplify & fix saved_tgids logic