Sri Lankan authorities flicked the off switch on most social media after Easter Sunday attacks on churches and hotels killed hundreds of people, a dramatic reaction that reflects accumulated distrust in the capability of American internet companies to control harmful content.