Tools/mmaps_generator: Multithreading optimisations. Should save some time generating mmaps.