Print a more accurate error message when we fail to create a lock file.