If there is some other app, reserving the file, at least on Windows engine could try to check can the OS report the app holding the file.
Would help investigation very much, what actually happened.
Example code for getting info of the reserving app (on windows): https://devblogs.microsoft.com/oldnewthing/20120217-00/?p=8283
For security reasons most likely that information can only be in firebird log. Not the error sent to the client, maybe...