avoid shadowing built-in `buffer` type in states.syslog_ng._build_config

rename local var: buffer => buf
Merge pull request #14149 from hulu/syslog-ng-buffer-shadow

avoid shadowing built-in `buffer` type in states.syslog_ng._build_config