arm/imx/gpio: add spinlock protection