msdkenc: close encoder upon bitrate change
Upon bitrate change, make sure to close the encoder otherwise the encoder is not re-initialized and the target bitrate is never reached, and the encoder was flushed at each frame from this moment.
Regression introduced in f2b35abc which replaced the call that was closing the encoder by an early return to avoid re-initialization.