[gpio] simplify gpioer sample, remove hacking code of root_thread and combine gpio.c and gpioer.c to user mode library