Throughout his regime, Gen Musharraf’s relations with the judiciary remained complicated, to say the least