This might not be possible considering that files being locked is a Windows thing and not a C# thing.
But I think if you use FileShare.ReadWrite this allows other users to be able to use the files while you are using them, this might be what you are looking for. It was answered in this post already: