Error "FileDescriptor 0x00000000000002d4 was not closed" when calling programs in parallel on Windows using Subprocess

I already open the issue Error "FileDescriptor 0x00000000000002d4 was not closed" when calling programs in parallel on Windows · Issue #223 · swiftlang/swift-subprocess · GitHub for the Subprocess package, I am also starting this forums topic because someone might have a good idea how to circumvent the issue without having it solved.

I have a sample project GitHub - struktaris/RunProgramTest: This package is to reproduce the error `Subprocess/Configuration.swift:899: Fatal error: FileDescriptor 0x00000000000002d4 was not closed` (the actual number might be different) that occurs on Windows. · GitHub where the issue is explained in the README, so just shortly:

The following error that occurs on Windows when making several calls to external programs in parallel:

Subprocess/Configuration.swift:899: Fatal error: FileDescriptor 0x00000000000002d4 was not closed

The function that causes the problem is RunProgramTest/Sources/RunProgramTest/RunProgramTest.swift at 582d756506b33c673813091abecabee9507c3f0c · struktaris/RunProgramTest · GitHub which in turn calls

run<Result, Input: InputProtocol, Error: ErrorOutputProtocol>(_:arguments:environment:workingDirectory:platformOptions:input:error:preferredBufferSize:isolation:body:) 

from the Subprocess package. The test runs fine on macOS.

Thanks to anyone who has a good idea.