Democracies are often leading the internet surveillance charge, inadvertently paving the way for the world’s autocrats.