Ensure install-during-restore is like install-then-restore

When we've installed an apk from the archive, recheck whether
to apply the system-uid policy restrictions around file system
restores.

Bug 8833099

(cherry picked from commit 2baf6dc)

Change-Id: Ibe673213600d80cb17ab86d6b5b0920d10f5a992