Using LaunchActivity when possible

... to prevent race

In [1], we store ActivityClientRecord earlier to make
ActivityClientRecord accessible in onCreate Lifcycle callback.
However, we still store the activity after Activity#onCreate.

This CL fixes the exception by obtaining ActivityClientRecord
from launch Activity list first to prevent race.

fixes: 196900007
Test: Try reproducible steps several times and didn't see
the error log.

[1]: 85986bf974ceba929de1bfda6a7e43330e17595e

Change-Id: I7553c56cad474feb73fca73c72b5e6e833b46fbf
1 file changed