Refactoring and mutex stuff
foam function to move newly added germs into the scum list