code: func (ms *FileMsgStore) lockIndexFile(fslice *fileSlice) error {
  	return ms.doLockFiles(fslice, true)
  }
docs: // lockIndexFile locks the index file of the given file slice.
  // If the file was closed it is opened in this call.