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