[PATCH 4.9 11/59] gpio: Fix crash due to registration race