NFS-safe file locking with timeouts for POSIX and Windows.
