Use completely static-sized buffers

(cherry picked from commit 49f90025)
7 jobs for 180-fix-cmsgbuf-usage-v9_12 in 6 minutes and 22 seconds (queued for 5 seconds)