flufl.lock: use patched getfqdn
When running on Mac without "Remote Access" enabled, the hostname
returned by socket.gethostname
cannot be resolved by
socket.gethostbyaddr
and so it hangs for ~5 sec and then throws an
error [1]. Turns out this is related to an old bug in CPython [2], which
hasn't been fixed yet, but other projects affected by this are using a
patched version of socket.getfqdn
as a workaround.
[1] https://github.com/iterative/dvc/issues/2582 [2] https://bugs.python.org/issue5004
Signed-off-by: Ruslan Kuprieiev ruslan@iterative.ai