gpiolib: Fix line event handling in syscall compatible mode