As Riyadh and Beijing nurture grandiose plans for military bases, New Delhi fears the archipelago could become a breeding ground for the terrorist group