Also added the shared utility to check if background_thread is enabled.
This can let manual arenas trade off memory and CPU the way auto arenas do.