libfreerdp-core: fix tsg_get_event_handles