add file record lock sample