bisect-kit: fix a bug where dut_init_func() is not run in some case

dut_init_func() should be run to initialize a new DUT when it is used
for the first time. However when a DUT is pre-allocated by BKR (i.e.,
when it is a stateful bisection), the initialization function is not
called.

BUG=b:331710260
TEST=iagnose_cros_tast.py run && run_formatter.sh && run_test.sh

Change-Id: I21cbe6d229009f9bbc2be8155529876739180395
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/bisect-kit/+/5400872
Tested-by: Cheng-Yu Lee <cylee@google.com>
Reviewed-by: MD Nayeem Jahan Rafi <njrafi@chromium.org>
Commit-Queue: Cheng-Yu Lee <cylee@google.com>
4 files changed