devtools/cocci: make strlcpy replacement smarter