bsd-user: Update ioctl FIODGNAME

Allows command "tty" to work propertly by using the correct IOC access flags
and defining the ioctl properly

Submitted-By: Alexander Kabaev <kan@freebsd.org>