Register a TLS stream constructor for the library to use
If a constructor is already set, it will be overwritten. Pass NULL in order to deregister the current constructor.
NULL
the constructor to use
0 or an error code