This PR fixes the interface_ipc*.py tests, which have been failing on NetBSD since #35037.
As file descriptor budget regressions of this kind recur (see #31537 and #36078), the macOS CI job now models NetBSD's limit so they are caught before merging rather than by nightly NetBSD CI afterwards.
See the commit messages for details.