Confd in-service upgrade error

Hello folks,
I am implementing confd in-service upgrade as per confd documentation. It worked fine till now, when I used to trigger the upgrade via CLI.
But, after integrating it with a rest interface, I am getting below error:

Error: mapi_init_upgrade failed: Usid 13 has lock on running

How can I figure out who is locking the running db ? What is the suggested action in case of such failures ?

Thanks in advance.

Issue is resolved after interleaving the upgrade process with ongoing commits in the same thread.