Fix JIT initialization race

See b/8767735 Slow thread in thread spin test

A race exists in thread creation/JIT initialization that can
leave the JIT permanantly disabled for a thread (typically
the first interpreter thread).

(cherry-pick from master If6fcac93a229edf068eb02ceceb374e3dc284b78)

Change-Id: I120af6f753984d63d43122ea30db102bd1d5cc63
1 file changed