avcodec/h264: allow mixing idr and non idr slices with frame threading again