avcodec/h264: avoid using lost frames as references