powerpc/watchdog: Improve watchdog lock primitive