moving Lock() call
Merge pull request #79 from mvrilo/master

Moving Lock() call in Rename