Added retry for default_gateway

If the network stack is not fully initialized when the
default gateway is retrieved, the gateway will be None.

Without the http metadata service, cbs-init cannot
post the "Admin" user password to the metadata service
and thus making the password accessible to the user.