Replacing OS thread sleep with hpx thread sleep function