add function that waits for local name
add function that waits for local name

Change-Id: I9e817cc08be4e6010412d3c238f61e2ffac6e519
Reviewed-on: http://review.couchbase.org/42581
Tested-by: Artem Stemkovski <15a0730a27c69f62ab86f2b6c639fca202166c02@couchbase.com>
Reviewed-by: Aliaksey Kandratsenka <340b8e09ca65cd3fc686427fcfed17e87eaf61e2@gmail.com>

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