libfreerdp-core: fix deadlock in transport thread