xfreerdp: modify way to return thread exit code