Invalidate cached result of getPackagesForUid

In order to reduce repeating binder call, there is an optimization
to cache the query result of getPackagesForUid. However, the cached
result don't update while granting package visibility temporarily.

Bug: 167656333
Bug: 178980212
Test: atest CtsAppEnumerationTestCases
Change-Id: I35e80c89f749c5aa288689275e78580610eecb46
3 files changed