Democracy is under threat around the world, but not because dictators are overthrowing elected governments and seizing power.