Also check for errno.EPERM to trigger fallback locking mode
Merge pull request #32 from simoncadman/master

Also check for errno.EPERM to trigger fallback locking mode