asfdec: free AVDictionaries properly when closing the demuxer