[PATCHv2] irqchip: arm-gic: take gic_lock when updating irq type