fix Libc.rand and seed problems (#44432)
Continuation from #43606
- Replaces thread-unsafe function `rand` with `jl_rand`.
- Fixes `_ad_hoc_entropy_source` fallback in Random.
- Uses uv_random for more direct access to quality-randomness (usually
a syscall rather than a file.)
- Ensures Array{Bool} are valid when created from RandomDevice.