[PATCH 4.16 080/196] irqchip/gic: Take lock when updating irq type