Pakistan’s Musharraf admits lapses in terror war