Notify test thread only after the callback thread has updated internal stats.

Race condition between notifying the test thread and updating the internal stats (in the onOveruse callback) causes the test thread to prematurely verify the internal stats for the expected written bytes. This causes the test to be flaky.

Test: run cts -m CtsCarHostTestCases -t \
android.car.cts.CarWatchdogHostTest
Bug: 208319149
Bug: 208446716

Change-Id: I0491bd4759605a15a606c7437217a3e6cc21776f
Merged-In: I0491bd4759605a15a606c7437217a3e6cc21776f
(cherry picked from commit ff938cbb1689911f723313a46f9061c28464fc35)
1 file changed