Add coarse locking around JWI dictionary access