I have only been able to find solutions for files, and not directories, like lsof. chflags has no read option, so I don't know how to do it.
How do I check if a directory is locked or not in bash?
bash;osx;lock