Apply package visibility in getPackageForUid for shared UID apps

Add package visibility filtering to the implementation in the branching
for shared UID.

Bug: 167656333
Test: CtsAppEnumerationTestCases
Change-Id: Ic1a40bfad53ac4d9110cef385b771fd7e9ccde3a
1 file changed