file lock moved to err stage of flusherr