scheduler-aware sleep(). fixes #2577
old sleep renamed usleep(), not exported. not sure if we need it.