Im a very wary against adding native code to loom for a range of reasons, but getting the bottom/providing better error messages for the locked file issues might make it worth it.
Closing this PR as having this code build as part of the loom build will be a nightmare. I will move it into a sperate lib, similar to how the native code is built for the installer.
Based on: https://devblogs.microsoft.com/oldnewthing/20120217-00/?p=8283
Im a very wary against adding native code to loom for a range of reasons, but getting the bottom/providing better error messages for the locked file issues might make it worth it.