Fix incorrect lock in Threads

This lock doesn't actually lock (it creates a temporary).

Test: Compiles
Bug: 308518042
Change-Id: I805cf9c1104da7cc80fdf27102515488f2ff0374
1 file changed