issue 32: fix some unit test data races via locking
issue 32: fix some unit test data races via locking

couchbaselabs/cbgt,couchbaselabs/cbgt,nimishzynga/cbgt,couchbaselabs/cbgt,nimishzynga/cbgt,nimishzynga/cbgt,couchbaselabs/cbgt,nimishzynga/cbgt