[sanitizer] Partial revert of recent ioctl changes.

Some build environments are missing the required headers.
This reverts r200544, r200547, r200551. This does not revert the change that
introduced READWRITE ioctl type.