SetMode: Don't call into PM with AppOps lock held

In the setmode paths do not call into package manager with the app-ops
lock held. Otherwise we might get dead-locks then someone calls into
app-ops manager with the package manager lock held.

Test: Booted and saw no errors from the changed code
Bug: 124731615
Change-Id: If074bed1bd246a81791a7d9fd656f42f1a755495
1 file changed