os/utils.c: Properly report failure to link lock file
Failure of link(2) when linking the temporary lock file to its final place is assumed to mean that the lock file already exists, but this can be caused by other problems (racy permission changes, MAC, OS bugs, etc.).
Fix: Report failure when errno is not EEXIST.
Patch: 0001-os-Properly-report-failure-to-link-lock-file.patch
Edited by Olivier Certner