Fix ProfilingInfo race.

The field can be cleared concurrently, so fetch it only once.

Test: test.py
Bug: 119800099

(cherry picked from commit a3b31ba6ee409f11889af604d91d8786458ea48f)

Change-Id: I44f0438caaa6c1fcc0986e9c2c13698194bf8179
Merged-In: I097a9c6f2175da7a027255c6b81954554bdbcff6
1 file changed