[UidMigration] fix update uninstallation with sharedUserMaxSdkVersion

When a system app is re-enabled after the update is uninstalled, when
the system app has shared uid, the current code doesn't support
directly reusing the disabled package setting. Instead, the preloaded
version is re-scanned and installed as a new app, which can bring
breaking behavior of changed UIDs when the manifest has
sharedUserMaxSdkVersion.

This change fixes the bug where registerExistingAppId fails when it
comes to shared uid, therefore directly reuses the disabled package
setting, consistent with the behavior for non-shared-uid system apps.

FLAG: EXEMPT BUGFIX
Test: manually with system-app-test.sh
BUG: 454062218

Change-Id: I9187ee77bac2a00d679a1a3cc7de2df564f38684
Merged-In: I9187ee77bac2a00d679a1a3cc7de2df564f38684

(cherry picked from commit 6b5ea2f7fbf50313d46e54e0d8f8c18c398e4869)

Change-Id: I1add6ba4a9c0a30a1c029974e70c21eb7a0fe5d5
2 files changed