Ensure debugging process stays on one thread