ISI may act if Afghanistan gets too close to India: Musharraf