MB-14914 wait for node() to go down
MB-14914 wait for node() to go down

..after net_kernel:stop() before starting the bringup
because assigning node name to nonode@nohost is async
and can happen after ns_kernel:stop() had exited which
causes dist_manager to crash during bringup

Change-Id: I5729cd11170cfb89163f185b7f8f01d404e77d56
Reviewed-on: http://review.couchbase.org/51370
Tested-by: Artem Stemkovski <15a0730a27c69f62ab86f2b6c639fca202166c02@couchbase.com>
Reviewed-by: Poonam D <6855f09986fe28ed7e8cdd9d60db878d898703d5@couchbase.com>

nimishzynga/ns_server,ceejatec/ns_server,nimishzynga/ns_server,ceejatec/ns_server,membase/ns_server,membase/ns_server,mschoch/ns_server,nimishzynga/ns_server,ceejatec/ns_server,nimishzynga/ns_server,mschoch/ns_server,ceejatec/ns_server,membase/ns_server,mschoch/ns_server,mschoch/ns_server,ceejatec/ns_server,nimishzynga/ns_server,nimishzynga/ns_server,membase/ns_server,mschoch/ns_server,mschoch/ns_server,membase/ns_server,ceejatec/ns_server,membase/ns_server