global lock using zk