Are you just looking for a way to avoid the black screen, or to make the transition faster? The latter is probably not feasible - the main reason we push manufacturers to support logical camera devices that smoothly switch between ultrawide/wide/telephoto/macro lenses automatically, is to avoid these sorts of annoying pauses when switching between them. But if a given device doesn't support it, then you have to shut down one camera and then open the next one, and the power off / power on sequences tend to take several hundred milliseconds in the best case, and sometimes quite a bit longer.
I'm not sure why black gets drawn to the output though - I'd naively expect the last frame from the previous camera to stay drawn until the next camera produces a preview frame. Can you tell if the black is truly black, or maybe the new camera just having a too-low initial exposure time (so dark but ramps up to regular brightness, instead of a hard cut from black)? A screen recording might make this more clear. If it's the new camera's auto-exposure starting at a poor initial guess, there's not much we can do about that, unfortunately.