DESC
Use mmap for the lock file
EDESC
Use mmap for the lock file, avoiding some pread/pwrite calls and making the
code more simple.

