[PATCH v4 3/3] kunit: tool: fix unintentional statefulness in run_kernel()