h264: move the ref lists variables into the per-slice context