introduce LockFile.Create method
extract same update functionality into a function
reorder parameters for better chaining
Merge pull request #406 from mexx/refactorings

some refactorings