sysutils/slurm-wlm: Fix slurmd and slurmstepd crash due to missing sockaddr length handling in bind()/connect()
After some time the daemons lose connection. Submitting tasks via srun
fails, and slurmd eventually crashes with a segmentation fault.
The root cause appears to be that several bind() and connect() calls do
not set the sockaddr length (sun_len, sin_len, sin6_len) correctly on
FreeBSD. Without this, sockets are initialized improperly and result in
runtime errors.
Upstream bugreport: https://support.schedmd.com/show_bug.cgi?id=23658
PR: 288983
Differential Revision: https://reviews.freebsd.org/D52145
Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org>
MFH: 2025Q3
(cherry picked from commit 1124fc3647342e2d3fab3a4bb16d52d7bd3d76a0)