Turkish court upholds lawmaker’s terror conviction