[USERLAND][LIB] Correct small bug with ioctl and libdriver