avcodec/cbs_h264_syntax_template: fix off by 1 error with slice_group_change_cycle