Resolve "lock file is deleted on exit even if lock acquisition failed"

Merge request reports