rt: Move win32_require out of the rust_kernel type

This is only used on rust_rng, which I am trying to extricate from
the kernel.
rt: Eliminate the dependency on rust_kernel from rust_rng
core::rt: Add a test that rng works with new tasks
auto merge of #6288 : brson/rust/rng, r=graydon

Closes #6280