NFS-safe file locking with timeouts for POSIX systems
