Fix check for pending interrupts as some other device is causing the status register to change.
Fix check for pending interrupts as some other device is causing
the status register to change.

From form@.

ok jsg

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars