remove hacks.
Compile USER_LDT by default, but, put it behind a privileged sysctl thatdefaults to disabled. To enable: # sysctl -w machdep.user_ldt=1
more
A kernel without USER_LDT returns ENOSYS, not ENOTSUP.
Add a test on the maximum number of slots.
Add tests for USER_LDT.