Is there a way to bypass or remove the file lock held by another thread without killing the thread?
I am using a third-party library in my app that is performing
If the file is locked and isn't being used, then you have a problem with the way your file locking/unlocking mechanism works. You should only lock a file when you are modifying it, and should then immediately unlock it to avoid situations like this.