doUIAction actually performs multiple actions inside and this error comes from isPageLocked function which tries to check if the object is locked. Could you also provide us with the full stack trace from logs which will actually have the actual DB exception as well.
Glad to hear you were able to resolve the issue by yourself. Thank you for sharing the resolution in the thread. I have marked your comment as the answer. This will be helpful for users who face the same issue.