common: some minor changes to arch.h
chansrv: allow multiple xrdpapi connections
chansrv: check for nil