This is simply an error in test setup. There's a limit to how far we can isolate them from the system. (it's possible new cmake versions close fds automatically since I can't reproduce the original issue via `ninja test` or `make test`) Fixes #9017