Simplify wait_for_bootstrap to use a Mutex.

Since the only purpose of this function is to make sure that no
bootstrapping task is running, a simple futures::lock::Mutex
should do the job just fine.

Closes #337.
8 jobs for ticket_337 in 88 minutes and 35 seconds (queued for 17 minutes and 23 seconds)