Pre-resolve dex cache strings before collecting string offsets

Fix a bug where string offsets are nondeterministic in some cases.
This was caused by preresolving strings after collecting string
offsets.

Bug: 120039850
Test: test-art-host
Change-Id: I39235c6b4fa43a89e7082962d1c7d4643748d078
1 file changed