Propagate DRI/DRM workaround to syscallbuf, and clean up ioctl handling a bit.