Replace tn_chk_irq_disabled function with a macro