Ensure all background threads have the main context as the parent context.