the workaround you are describing to remove the lock looks like there was a process on the fileserver which locked the file. The lock was removed due to the disappeared process.
There are some commandline tools in Linux which can help to identify which process open files like “lsof” and “fuser”.
In your case I would guess that restarting Samba could help.