Proper check and dropin replacement for usleep().