Whenever hostility between Beijing and New Delhi eases, tensions between India and Pakistan have also fallen.