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