Pak court bans Musharraf from polls for life