gpio_lib: fix check for invalid mux mode in set_mux() and get_mux()