A little bit of multithreading safety for GalaxyGenerator.