Change the tread state before acquiring the code cache lock.

Fix a deadlock situation.
Bug: 4192964

Change-Id: I27f869d90d58f67e675a65444ebed6fdf2a5f518
1 file changed