gpio_lib: check for invalid pin number in set_mux() and get_mux()