Fix lock order issue with large-object space lock

We have a code-path where GC thread acquires large-object space lock (a
higher level lock) after acquire JNI global lock (a lower level lock).
Moving AllocSpaceLock to be lower than JniGlobalsLock to fix this.

Bug: 120782890
Test: art/test/testrunner/testrunner.py --host
Change-Id: I4f169c779cb17f6c14f6e5278857845f9904e62c
1 file changed