New mosques often stir up local resistance and anti-Muslim sentiment. Even when they get built, the blowback can be intense.