invert test in debugf to reduce indentation.

add commentary
watchdog: reduce debugging spew using debugf
take syscall lock when writing new registers.