call restoreInstallState so that state written by previous invocations to inject-build doesn't get lost before this fix, all but the last one of the injected isolated builds would be re-run when building main package