[xburst] jz4740-gpio: Fix potential race condition