fix breakage due to initializing thread pointer when loading libs
fix breakage due to initializing thread pointer when loading libs

at initial program load, all libraries must be loaded before the
thread pointer can be setup, since the TP-relative addresses of all
initial TLS objects must be constant.

chardi/musl,chardi/musl,chardi/musl