better granularity with lmdb's mdb_enlarge_map
fixed endless loop while looking for unkown block headers