These are normally held per thread, but in cases of threads not having dedicated init/cleanup functions (GLib thread pool), we can use a global one as fallback. Fixes #1936 Change-Id: Ia2ff3523e6079baa73e0721862100ec2f8b66c88