Remove race condition in Smb Share discovery

Stores a mount call if host discovery is not yet complete and runs it as
soon as the first share names start coming back, indicating that host
discovery is complete.

The mount can be attempted before share discovery is complete because
mounting via a hostname is only dependent on host discovery for name
resolution.

Bug: 757625, 863178
Change-Id: If53ec9061c79a4f408278be4ddd990a7c9ca3791
Reviewed-on: https://chromium-review.googlesource.com/1136528
Reviewed-by: Zentaro Kavanagh <zentaro@chromium.org>
Reviewed-by: Scott Chen <scottchen@chromium.org>
Commit-Queue: Bailey Berro <baileyberro@chromium.org>
Cr-Commit-Position: refs/heads/master@{#575477}
2 files changed