fix a race condition in specific usages of ZKOrig