[LLDB][Windows]: Don't pass duplicate HANDLEs to CreateProcess (#165281)

CreateProcess fails with ERROR_INVALID_PARAMETER when duplicate HANDLEs
are passed via `PROC_THREAD_ATTRIBUTE_HANDLE_LIST`. This can happen, for
example, if stdout and stdin are the same device (e.g. a bidirectional
named pipe), or if stdout and stderr are the same device.

Fixes https://github.com/msys2/MINGW-packages/issues/26030

GitOrigin-RevId: 5430d7a9e60b0feb899862d287351e14aeeab6bd
1 file changed