wasm: use thread::sleep
on non-wasi wasm too
#4963
Merged
thread::sleep
on non-wasi wasm too
#4963