Ignore locking failures caused by missing NFS locking daemon. Handle EINVAL the same way as EOVERFLOW.