Fixes #2788 allowing use of config.threadsafe!