Revert "fix _lock + dll"

This reverts commit aab2f3654d183559e147dc0c7ac7a7a5c77e25a4.