Fix NativeCallbackThread race condition.

Bug: b/65286959
Test: instrumentation
Change-Id: I0086a362b9b916d87118ed478aa8222874df19b1
2 files changed