Refactor DexFile ownership

Avoid bare pointers in DexFileLoader APIs, which caused clang-tidy
issues and other problems.

Bug: none
Test: build and boot
Change-Id: Ic277bc83af1997774b42c55d3d631ec940b9c015
12 files changed