userspace/libsinsp/eventformatter: print ']' only if we have printed '['