src: refactor win32 `DebugProcess()` to use RAII cleanup
Prefer more idiomatic C++ cleanup code over goto
.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes (This was not written on Windows so CI will have to tell) -
commit message follows commit guidelines