use delay when waiting for workers

Change-Id: If4fd4689ea275182963eacd504ad785ed9875c5e
Reviewed-on: http://review.couchbase.org/38123
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>