Add section support for Solaris.

Solaris requires special handling because the dl_phdr_info.dlpi_tls_modid field
is missing.
Improve ELF support for FreeBSD.
Disable Solaris implementation of thread priorities.

It always results in the exception: Unable to get scheduling class.