What happens when a journal changes its editor-in-chief in the middle of a review?
Most likely, nothing changed. The previous editor was probably waiting for referees responses and the new editor is probably now waiting for the same referees to respond. Only if the new editor strongly disagrees with the choice of referees (which is very unlikely), he would ask for new ones and you would have lost time. But you are probably safe.