rt: Add rust_dbg_next_port for generating test port numbers
core::rt: Add a test mod and put run_in_newsched_task there
core::rt: Use generated port numbers in tests