Thread safe microsecond sleep.