bootstrap: Check before scheduling async
bootstrap: Check before scheduling async

Fixes a memory leak

Change-Id: Ie6de8904f52e0cc3452616d50f53b4680b2b5484
Reviewed-on: http://review.couchbase.org/32630
Reviewed-by: Brett Lawson <c8c4369773d7d7226e031f0c4af62e3f38a08510@gmail.com>
Tested-by: Mark Nunberg <e7d42768707bf23038325b0b68d4b577e5f6064a@haskalah.org>

avsej/libcouchbase,signmotion/libcouchbase,mody/libcouchbase,senthilkumaranb/libcouchbase,signmotion/libcouchbase,mody/libcouchbase,mody/libcouchbase,mnunberg/libcouchbase,avsej/libcouchbase,maxim-ky/libcouchbase,PureSwift/libcouchbase,PureSwift/libcouchbase,maxim-ky/libcouchbase,uvenum/libcouchbase,mody/libcouchbase,couchbase/libcouchbase,avsej/libcouchbase,uvenum/libcouchbase,couchbase/libcouchbase,uvenum/libcouchbase,kojiromike/libcouchbase,senthilkumaranb/libcouchbase,maxim-ky/libcouchbase,kojiromike/libcouchbase,senthilkumaranb/libcouchbase,couchbase/libcouchbase,senthilkumaranb/libcouchbase,avsej/libcouchbase,mnunberg/libcouchbase,mnunberg/libcouchbase,kojiromike/libcouchbase,PureSwift/libcouchbase,mnunberg/libcouchbase,signmotion/libcouchbase,signmotion/libcouchbase,avsej/libcouchbase,couchbase/libcouchbase,uvenum/libcouchbase,couchbase/libcouchbase,avsej/libcouchbase,uvenum/libcouchbase,maxim-ky/libcouchbase,couchbase/libcouchbase,PureSwift/libcouchbase,kojiromike/libcouchbase,avsej/libcouchbase,mnunberg/libcouchbase,couchbase/libcouchbase