Fix deadlock between package manager and settings

We should not be calling up to the settings provider with the package
manager lock held. Get the settings value prior to entering the package
manager critical section.

Change-Id: Idf7796a41872181a02295346cd0a523da55d4a15
Fixes: 112461688
Test: Manual
1 file changed