Fixed segmentation fault on certain instances of lock file creation and deletion