Implemented lock file for whelk operations.