Orphan: Correct issue where MockBucket callbacks can be invoked immediately.
Orphan: Correct issue where MockBucket callbacks can be invoked immediately.

Callbacks should be invoked outside of the current execution flow rather
than being invoked from within the function call itself.

Change-Id: I59f4d562342c9e58acce272d8a9a63947594022b
Reviewed-on: http://review.couchbase.org/49326
Reviewed-by: Mark Nunberg <dab05a0fe859c5cb93882b2a75a0d613501b07be@couchbase.com>
Tested-by: Brett Lawson <c8c4369773d7d7226e031f0c4af62e3f38a08510@gmail.com>

couchbase/couchnode,brett19/couchnode,corbinu/couchnode,couchbase/couchnode,brett19/couchnode,actano/couchnode,kshmir/couchnode,kshmir/couchnode,kshmir/couchnode,corbinu/couchnode,GannettDigital/couchnode,actano/couchnode,GannettDigital/couchnode,brett19/couchnode,actano/couchnode,corbinu/couchnode,couchbase/couchnode,couchbase/couchnode,GannettDigital/couchnode