Fix app image generation and checking with shared libraries.

We can now have multiple class loaders in an app image.

bug: 111174995
Test: dex2oat_test, test.py

Change-Id: Ie45c030b483efa78df2605fbcafb4e641b80c59a
7 files changed