I don't know how I overlooked this, but the jscore functions aren't called from the same thread, so they don't have access to any thread-local data! They're imported into [widgets.c](https://github.com/Lokaltog/candybar/blob/develop/src/widgets.c#L54) and executed outside of the thread scope.

Any ideas on how to resolve this issue?