hevc: do not clear refs from previous sequence that haven't been output yet