Revert "added some locks"

This reverts commit 2ea8611e789e635ccc72c4172f1c93a7447b2779.