c/x86-segments: use get_thread_area to get fs and gs base in x86
c/x86-segments: use get_thread_area to get fs and gs base in x86

... and some other trivial fixes.

fishilico/shared,fishilico/shared,fishilico/shared,fishilico/shared,fishilico/shared,fishilico/shared,fishilico/shared