Make foreign calls work outside of tasks. #4451
Rewrite the exchange allocator to work without an active scheduler. #4457