[PATCH 4.14 168/222] genirq: Fix race on spurious interrupt detection