Fix lock order checking violation.

Turns out you can't do thread state changes while holding locks.
This change fixes occasional lock violations in ThreadStress test.

Also moved the usleep in TransitionCollector outside of the place we
hold the gc_complete_lock_.

Change-Id: Ib3a85fffdbea80b64d72a2ad7e916251340c22e6
1 file changed