[SurfaceFlinger] Fix crash in SurfaceTracing

mThread is guarded by a lock, so acquire the lock to steal the thread
when tracing finishes.

Bug: 147319235
Test: winscope
Change-Id: Id0e103c66c8937272aa9a1c02f153eea2e2f9859
1 file changed