An appeals court has upheld the dismissal of a lawsuit by Jamal Khashoggi's widow against spyware maker NSO Group, citing lack of jurisdiction.