ldso: remove redundant runtime checks in static TLS logic