Make lmdb recreate a file if it has an invalid format