Only put resolved classes inside the dex cache.

Users of the dex cache (like the verifier) rely on entries to be
resolved.

Bug: 155852343
Test: No crash doing "while adb shell stop && adb shell start && sleep 5; do :; done"
Change-Id: Ie2a97f75c6cd49a7cf1a2c6529cd8900d7acba3b
Merged-In: Ie2a97f75c6cd49a7cf1a2c6529cd8900d7acba3b
(cherry picked from commit fa915c920f07a794f06a9bee47513dc5f303d019)
3 files changed