This is a continuation of effort started here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=58803 with a patch provided Per Hedeland. Frankly, it didn't change much although almost 13 years passed.
I haven't had a close look at the userland part of it, though it seems that some things have improved and a lot more things use sysconf(_SC_ARG_MAX).
I performed some basic testing, i.e. I needed that for some specific need and it fixed my issue.