moved methods to lock a chunk from Chunk to Partition.