fixed: don't use thread::sleep_for where it's known to be broken

Fixes #2690.