Fix engines on Windows
Fix engines on Windows

Function references cannot be pickled. When spawning processes on
Windows, pickling is required. Due to this, on Windows, don't pass
function references as arguments to the child process and instead
calculate them inside the child process.

Signed-off-by: Sergey Kizunov <dfddabaa9af05982b01940b837a87844148069c9@ni.com>

saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt