Use strlcpy in place where strncpy(s, ...) + s[sizeof(s)-1] = \0; was used

(cherry picked from commit 175f0694)
18 jobs for ondrej/use-strlcpy-in-wks_11.c-v9_12 in 8 minutes and 10 seconds (queued for 5 seconds)