headless: Use direct x-thread wakeup instead of sleep/spin