avformat/tee: Fix leaks in tee muxer when open_slave fails