xrdp-ng: reduce usage of rdpup_set_opcode