spawn_nofetch: clone locked config, bug #408817

It's unsafe to pass in an unlocked config instance, since that can
trigger issues like bug #408817 due to fragile assumptions involving
the config state inside doebuild_environment().
3 files changed