Re-arrange code to avoid recursive locking of the JIT lock.

Creating a profiling info requires the lock, so don't hold it before
calling ProfilingInfo::Create.

Test: test.py
Change-Id: Ib217052c09274665cbfa7572540ee391858dd342
1 file changed