Detect "folder in use" in a script

Is there a way to show in a DOpus column whether the folder is "in use" by some other process? No need to detect the process, just the fact itself so you don't try to rename it and fail

There is Leo's script that shows a locked status for files by trying to open each file, is there a similar operation for folders (e.g., "open it for renaming")? Or maybe some other way to get this information

(found a couple of [other] somewhat related (Folder in use - How to find what's using it?) links, but they are about finding ways to unlock, but I don't have this
issue, it's just about early awareness)