Wait for uid proc state change
when verifying app-op logging state
The uid proc state changes are sent to AppOpsService delayed. I.e. even
after the activity goes into the background the AppOpsService still
thinks the activity is in fg for a short time. To capture this, wrap the
check into an eventually{}.
Test: atest CtsAppOpsTestCases
Fixes: 147522610
Change-Id: Ie1cecb260f7d13f98766a371d632973e3cee7e96