gpiolib: of: Correct error handling in of_get_named_gpiod_flags