A court in Pakistan has overturned a death sentence handed to the country’s former President and military ruler, Pervez Musharraf, dismissing it as “unconstitutional.”