provision/juju: avoid locking cpu by adding sleeping in infinite loops

I could use runtime.Gosched() too, but time.Sleep is probably faster.
That should fail with the old scheduler too, looks like the new
scheduler just exposes the issue.

Fix #329.
provision/juju: increase timeout in test