Thanks a lot for the help and the feedback.
We have looked into it and indeed that could have been one issue but we also saw another one, is that the function was not working when in UAM-> Settings-> File Settings -> we selected as “Locked file types”, “File types not to lock:….”. Once we have moved this parameter to “All”, it worked.