Delhi and Kabul are thinking that "the enemy's enemy is a friend" with an eye on Pakistan, writes Happymon Jacob.