Its referendum reflects a broader shift that is upending the long-held consensus that open borders are the key to economic ...