demux_lavf: implement DEMUXER_CTRL_RESYNC

This makes -chapter work with stream_dvd by telling ffmpeg to flush its
internal buffers after a stream_dvd seek.