libfreerdp-core: add connection timeout, fix gateway bypass local