finished lock implementation on unique chunkids