Pakistan court upholds life sentence for political activist