str_format_meta: fix reference counting