Reapply "Use gethostuuid() on Mac to identify hosts for LockFileManager"