Found the problem. Error was in Go-land. An array holding function pointers to the DLL-functions was out of order with a list of constants naming the elements in the array. Turns out we have been calling
txUninitializeSystem all this time.
We will look into open sourcing the result when we are done if anyone is interested.