upipe_avfsink: fix use/release deadlock

upipe_avfsink wont release if muxer has not been
openeded or header has not been written successfully.
empty urefs list/release pipe in those cases to fix it.