gdt: add segment descriptor facility.

Adds a way to easily generate segment descriptor for the global descriptor
table. Also provides SegmentDescriptor unit tests for validation.