Move hw/state independent ioctls to ioctl-tree.c

This gets rid of all ioctl specifics in libumockdev-preload.c.