xrdp-ng: fix pointer data buffer lengths and enable queuing of server messages