[ioctl] Support EVIOCGRAB

It is used in qtbase/platformsupport/input/evdevkeyboard/qevdevkeyboardhandler.cpp