The idea that thoughts should be private was once a given. Even the most authoritarian regimes could only punish what was spoken or done, not what was felt.