base1: Fix race in test-machines
base1: Fix race in test-machines

The machinesUpdateTest function races due to the inner promise not
chaining up to the outer always() function. Fix it.

Closes #9308
deryni/cockpit,stefwalter/cockpit,moraleslazaro/cockpit,mvollmer/cockpit,andreasn/cockpit,andreasn/cockpit,cockpit-project/cockpit,stefwalter/cockpit,deryni/cockpit,mareklibra/cockpit,cockpituous/cockpit,martinpitt/cockpit,moraleslazaro/cockpit,martinpitt/cockpit,andreasn/cockpit,stefwalter/cockpit,deryni/cockpit,andreasn/cockpit,stefwalter/cockpit,deryni/cockpit,SotolitoLabs/cockpit,andreasn/cockpit,cockpituous/cockpit,martinpitt/cockpit,deryni/cockpit,mareklibra/cockpit,cockpituous/cockpit,mvollmer/cockpit,garrett/cockpit,cockpituous/cockpit,SotolitoLabs/cockpit,SotolitoLabs/cockpit,mareklibra/cockpit,andreasn/cockpit,martinpitt/cockpit,cockpituous/cockpit,martinpitt/cockpit,mareklibra/cockpit,andreasn/cockpit,cockpit-project/cockpit,moraleslazaro/cockpit,cockpit-project/cockpit,garrett/cockpit,deryni/cockpit,moraleslazaro/cockpit,garrett/cockpit,SotolitoLabs/cockpit,stefwalter/cockpit,mareklibra/cockpit,garrett/cockpit,stefwalter/cockpit,mareklibra/cockpit,SotolitoLabs/cockpit,moraleslazaro/cockpit,cockpituous/cockpit,mvollmer/cockpit,SotolitoLabs/cockpit,mareklibra/cockpit,cockpit-project/cockpit,moraleslazaro/cockpit,stefwalter/cockpit,cockpit-project/cockpit,deryni/cockpit,SotolitoLabs/cockpit,garrett/cockpit,mvollmer/cockpit,moraleslazaro/cockpit,mvollmer/cockpit