add lock method to chunk store