Update submodules into a consistent state.