Tunisian court upholds 38-year sentence for terrorists