Lock more of the things

Specifically, access to PackagePreferences

Test: atest
Bug: 129444912
Change-Id: Ia2ff46fff433333c76f0898a68b9230dcfb253ee
2 files changed