lock for chunk operation