Revert "locks"

This reverts commit 4e4c99a85694f087d0afb1600e26bacff1bea074.
threads