hw/intc/loongarch_pch: fix edge triggered irq handling