Is the case that if UserA opens 100 files (via CIFS?), then closes all these files in a short time period, about 10 remains locked? Can you unlock those files in the web gui, try Alfresco Explorer (/alfresco).
I am connecting alfresco through web drive s/w. the web drive is able to lock the files in the alfresco server.. But when the user properly closes the file, file automatically unlocked in the server.. but during the network problem, some of the files are locked in the server.. is their any way to unlock the files by using code/script/query..