tcp: make connect() mem charging friendly