“The water in Afghanistan,” General Zia-ul-Haq had told his spymaster in December 1979, “must boil at the right temperature.” India still has time to learn from the lessons of the war that was lost 25 years ago, and work to make sure the pot doesn’t boil over, writes Praveen Swami