libfreerdp-core: fix transport_free in cases where transport thread was not started