waitms: Reload watchdog before spin waiting
waitms: Reload watchdog before spin waiting

This CL moved the reload watchdog operation to before
the spin wait operation. This still achieves the
goal of allowing back-to-back waitms calls and adds the
ability to time watchdog behavior.

Without this modification, you can't accurately test
the watchdog timeout period.

BRANCH=none
BUG=b:151475816, b:151528646
TEST=make proj-nucleo-h743zi
     # Flash
     > clock hsi
     > waitms 10000
     # Should see watchdog helper message at ~9 seconds

Signed-off-by: Craig Hesling <383db090fd8ef907a606ac8a9eccd2962bc489cf@chromium.org>
Change-Id: Id471a2667c913889c1aeba8bc14bb0f33458ed59
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2104494
Reviewed-by: Tom Hughes <fc5c12f30a5ed2baa0581f44ee14ad1eb7b20d83@chromium.org>
Reviewed-by: Aseda Aboagye <12c9b286316a940fd31c24070da5ab64cdd4d0e7@chromium.org>

coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec