tcp: fix derefence NULL bug

in create_endpoint. If the bind() fails because someone else is
using the port, conn does not exist. Do not try to dereference it
to free conn->priv.