LMDB: EIO/MDB_INVALID and use of pwrite/pread