RdpChannel: fix memory corruption on client initialization