[WebCodecs] Flush before reconfiguring the encoder
<rdar://problem/101532393>
Pull request: https://github.com/WebKit/WebKit/pull/5741
Committed 255957@main (cac80a1b3b93): <https://commits.webkit.org/255957@main> Reviewed commits have been landed. Closing PR #5741 and removing active labels.