Fix for inv tracking labels (must not assign a thread-local to a
module-global => makes it static), WIP