Three neo-Nazis who plotted terror attacks on mosques and synagogues believing a race war was imminent have been jailed.