replace strncpy + setting end of array to NUL with strlcpy

22 jobs for 710-fix-socket-test-v9_12 in 13 minutes and 36 seconds (queued for 3 seconds)