threadsafe gossdb