Fixes #2788 allowing use of config.threadsafe!

Fixes #2852