fix bug of hls muxer, support close/open/flush even muxer is closed.