syslog plugin: Copy the BUFFER_ADD() macro from src/utils_format_json.c.