lockdep: simplify check_prev_add_irq()