core: tcp - set default local socket for tls when lookup fails