Use sleep instead of a timer.

Change-Id: If7e30d6617f7079a04ae807fdb236c4d1d1c4362
Reviewed-on: http://review.couchbase.org/43808
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>