Locked by system

Hello,
I’m experiencing an issue where some nodes are ending in a locked by system status. What could be the cause of that?
Is there a way to query for those locked nodes and unlock the with a groovy script?

Thanks

No clues? how could I unlock nodes with a groovy script?

You can use VersionManager#checkin/checkout methods,
check JCR specs for details.