Economic recessions have barely affected military spending. The US is still the first, but other countries, including North Korea, are accelerating their pace