A 1910 essay warning of a “Tide of Turbans” shows American anxiety over Indian immigration has a long, ugly history