lib: do not ignore error
Failing to set a TLS variable is theoretically possible with some implementation the first time a non-NULL value is set for a given thread. In practice most implementations allocate a large enough array up-front, so this should never happen. But since the interface assumes that the error does not occur, abort if it still does.