fix Issue 12092 - Wrong TLS access in PIC code (X86_32)

- Use RI_TYPE_TLS_GD (general dynamic) to access global
  TLS symbols in PIC code.
code sequence for __tls_get_addr calls is incorrect

- It has to use SIB addressing for the LEA instruction
  to make room for linker optimizations.
NOP after the __tls_get_addr call isn't needed
Merge pull request #4223 from MartinNowak/fix12092

fix Issue 12092 - Wrong TLS access in PIC code (X86_32)