hlsdemux: Don't double-free variant streams on errors
If an error happened switching to a new variant, we switch back to the previous one ... except it will be unreffed when setting it.
In order to avoid such issues, keep a reference to the old variant until we're sure we don't need it anymore
Fixes cases of double-free on variants and its contents