[AppOps] Remove unwanted UidState objects more quickly

We have more modern ways to query a snapshot of packages on the device,
in fact we have already been using this so we can apply it to other work
that we do where we need to remove or update UidStates objects that may
represent packages that no longer exist or are outdated.

Bug: 320850079
Test: Boot and verify improvement in this logcat "SystemServerTiming:
        PhaseActivityManagerReady took to complete:"

Change-Id: Ic4011b8ecb45aee97ca08d85220f6892bd07fa6f
1 file changed