Implemented 'Synchronize' with 'lock'
Merge pull request #409 from zsxwing/synchronize-lock

Implemented 'Synchronize' with 'lock'