I took some time to finally hack up CLONE_AUTOREAP with pidfds. A much requested feature (e.g., see [1] and [2]).
Current state of the branch is in [3].
[1]: https://github.com/uapi-group/kernel-features/issues/45
[2]: https://github.com/kata-containers/kata-containers/issues/12489
[3]: https://github.com/brauner/linux/commits/work.pidfs.autoreap/