These lynchings are not solely a law and order problems. Indian law enforcement definitely has issues with maintaining peace and harmony but WhatsApp has considerably added to the problem. A lot of these lynchings have taken place within minutes. Before WhatsApp, it usually took a good amount of time to collect a group and target someone but these mobs assemble with 10-15 minutes, do the deed and disperse mere minutes before the police arrives.
India needs legal and administrative reforms to deal with these issues but WhatsApp can definitely put the brakes on such small mobs by merely rate limiting the group texts. At the very least, it will give the police some more time to respond.