[PATCH 5.18 0435/1095] media: hantro: HEVC: Fix reference frames management