Release startup dex cache arrays in the GC critical section.

There could be concurrent GCs which won't traverse these dex caches
arrays if we don't keep them visible to the GC.

Test: test.py
Bug: 258984295
Change-Id: I42aea6e8932934923dd7fccc1aa625a57bcfbd9f
1 file changed