MB-18720 Add retry-init function for unit test
MB-18720 Add retry-init function for unit test

Create an alternative to InternalRetryDefaultInit that accepts
all information from parameters. The existing function
consults the command line parameters, which is not suitable
for use from a unit test.

Change-Id: I05f0941affc9e76dae6a12351bdebd7c1c9ececc
Reviewed-on: http://review.couchbase.org/62636
Reviewed-by: Aliaksey Artamonau <3c875bcfb3adf2a65b2ae7686ca921e6c9433147@gmail.com>
Tested-by: Johan Larson <5105ed78d79b274eb9b1b31aff9e2d413721d12f@couchbase.com>

couchbase/cbauth,couchbase/cbauth