Wait for XState machine to settle before returning data during SvelteKit SSR.
See Devessier/nuxt3-ssr-xstate for a version using Nuxt 3 and more information.