Besieged by Communists or Islamists, people feel a sense of belonging. Defense of the nation against dangerous outsiders – and their domestic agents, whether real or imagined – provides a powerful bond.