Merge "installd: Refactor RunDex2Oat to reduce variable life span" am: 6d4f6b9bb3 am: 39b6ba3736

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1365300

Change-Id: Ie9a1362b90b2708b677e81762c1ce443f3db796c