[roll] Roll fuchsia [trace_processing] Refactor construction of Process and Thread objects

Avoid duplication of code and make the construction of Thread objects
more efficient.

Before this change, the code did a linear search to look up Thread
objects by TID.  (That came from the original Dart version of the
code.)  Fix that by introducing process_threads_map.

A recent change duplicated some code for creating the Thread objects.
Deduplicate that by introducing get_process() and get_thread()
functions.

Original-Bug: b/331457527
Test: trace_importing_test.py
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1017447
Original-Revision: 4cf21a21a41bce9249a00b21c394d2b658ee3298
GitOrigin-RevId: 64da2049ee2bd8bf28279bd99a9dc54bc78e477a
Change-Id: I07eb86b5f48b5b1e00fa7b8261851940304c60df
diff --git a/stem b/stem
index 222cf9d..a5144f1 100644
--- a/stem
+++ b/stem
@@ -11,7 +11,7 @@
              githooks="integration/git-hooks"
              remote="https://fuchsia.googlesource.com/fuchsia"
              gerrithost="https://fuchsia-review.googlesource.com"
-             revision="9b3d27eaa33fc45178db23319c5d1648db4337e0"/>
+             revision="4cf21a21a41bce9249a00b21c394d2b658ee3298"/>
   </projects>
   <hooks>
     <hook name="install-environment"