[PATCH 5.8 78/85] gpiolib: Fix line event handling in syscall compatible mode