Installd: Refactor dexopt to scoped file descriptor am: 6fb5a0179d
am: ce9b0e81ee

Change-Id: I8dc13c56b11609ff30f64174b09bc3f79e3a9caf