core: add infinite timeout to dispatcher calls, prevent crashes on busy or swapping machines.

(cherry picked from commit d96c49862ec40836d26e91022f74422f85dc6a47)