So a complicated set of terminal commands and alternatives you need to have memorized ahead of time. That's definitely the linux solution. You can do it, but no average user would ever be able to when they need it.
Windows probably has some equally complicated way of finding what is locking a file/folder... or you can just install File Locksmith which is a Microsoft PowerToys tool, and just have it in the context menu everywhere.