[PATCH 4.18 260/350] genirq: Fix race on spurious interrupt detection