base: Fix races during test-file.html tests
base: Fix races during test-file.html tests

Looks like this:

FAIL: pkg/base1/test-file.html 55 - not reached, test: closing, source: at http://localhost:53095/tools/qunit.js:10630
FAIL: pkg/base1/test-file.html 56 - Expected 2 assertions, but 3 were run, test: closing, source: at http://localhost:53095/tools/qunit.js:9246

Closes #2526

Reviewed-by: Dominik Perpeet <f7830b2723a5db4fc185058b06cfab4b89a38da9@redhat.com>

moraleslazaro/cockpit,harishanand95/cockpit,petervo/cockpit,nmav/cockpit,moraleslazaro/cockpit,SotolitoLabs/cockpit,arilivigni/cockpit,cockpituous/cockpit,larskarlitski/cockpit,martinpitt/cockpit,moraleslazaro/cockpit,dperpeet/cockpit,vanloswang/cockpit,zigitax/cockpit,haiyangd/cockpit_view,larsu/cockpit,moraleslazaro/cockpit,cockpit-project/cockpit,denysvitali/cockpit,vanloswang/cockpit,sgallagher/cockpit,denysvitali/cockpit,firebitsbr/cockpit,sgallagher/cockpit,xhad/cockpit,michalskrivanek/cockpit,matobet/cockpit,darioajr/cockpit,firebitsbr/cockpit,larsu/cockpit,FireDrunk/cockpit,Scribery/cockpit,garrett/cockpit,firebitsbr/cockpit,Armstrong1992/cockpit,FireDrunk/cockpit,michalskrivanek/cockpit,garrett/cockpit,SotolitoLabs/cockpit,martinpitt/cockpit,andreasn/cockpit,moraleslazaro/cockpit,stefwalter/cockpit,jscotka/cockpit,dperpeet/cockpit,garrett/cockpit,haiyangd/cockpit_view,deryni/cockpit,andreasn/cockpit,deryni/cockpit,SotolitoLabs/cockpit,deryni/cockpit,stefwalter/cockpit,andreasn/cockpit,cockpituous/cockpit,garrett/cockpit,Armstrong1992/cockpit,FireDrunk/cockpit,arilivigni/cockpit,dperpeet/cockpit,xhad/cockpit,sgallagher/cockpit,larskarlitski/cockpit,Scribery/cockpit,mareklibra/cockpit,matobet/cockpit,petervo/cockpit,mvollmer/cockpit,vanloswang/cockpit,mareklibra/cockpit,matobet/cockpit,deryni/cockpit,arilivigni/cockpit,petervo/cockpit,harishanand95/cockpit,denysvitali/cockpit,cockpituous/cockpit,SotolitoLabs/cockpit,sgallagher/cockpit,firebitsbr/cockpit,petervo/cockpit,matobet/cockpit,andreasn/cockpit,SotolitoLabs/cockpit,martinpitt/cockpit,haiyangd/cockpit_view,xhad/cockpit,cockpit-project/cockpit,firebitsbr/cockpit,moolitayer/cockpit,michalskrivanek/cockpit,maxamillion/cockpit,sgallagher/cockpit,deryni/cockpit,Armstrong1992/cockpit,xhad/cockpit,stefwalter/cockpit,moolitayer/cockpit,Scribery/cockpit,denysvitali/cockpit,jscotka/cockpit,mareklibra/cockpit,petervo/cockpit,jscotka/cockpit,larskarlitski/cockpit,dperpeet/cockpit,zigitax/cockpit,harishanand95/cockpit,andreasn/cockpit,michalskrivanek/cockpit,larskarlitski/cockpit,petervo/cockpit,maxamillion/cockpit,nmav/cockpit,cockpit-project/cockpit,SotolitoLabs/cockpit,vanloswang/cockpit,michalskrivanek/cockpit,haiyangd/cockpit_view,deryni/cockpit,Armstrong1992/cockpit,jscotka/cockpit,jscotka/cockpit,zigitax/cockpit,arilivigni/cockpit,harishanand95/cockpit,petervo/cockpit,darioajr/cockpit,larskarlitski/cockpit,maxamillion/cockpit,garrett/cockpit,vanloswang/cockpit,mareklibra/cockpit,Scribery/cockpit,stefwalter/cockpit,vanloswang/cockpit,cockpit-project/cockpit,matobet/cockpit,zigitax/cockpit,xhad/cockpit,mvollmer/cockpit,nmav/cockpit,FireDrunk/cockpit,Scribery/cockpit,mareklibra/cockpit,cockpituous/cockpit,cockpit-project/cockpit,mvollmer/cockpit,FireDrunk/cockpit,martinpitt/cockpit,Scribery/cockpit,darioajr/cockpit,dperpeet/cockpit,harishanand95/cockpit,maxamillion/cockpit,dperpeet/cockpit,michalskrivanek/cockpit,larskarlitski/cockpit,xhad/cockpit,matobet/cockpit,deryni/cockpit,stefwalter/cockpit,larsu/cockpit,arilivigni/cockpit,martinpitt/cockpit,mareklibra/cockpit,moolitayer/cockpit,sgallagher/cockpit,vanloswang/cockpit,maxamillion/cockpit,andreasn/cockpit,stefwalter/cockpit,cockpituous/cockpit,andreasn/cockpit,xhad/cockpit,harishanand95/cockpit,Scribery/cockpit,mvollmer/cockpit,larsu/cockpit,michalskrivanek/cockpit,moolitayer/cockpit,haiyangd/cockpit_view,jscotka/cockpit,larsu/cockpit,mvollmer/cockpit,larsu/cockpit,Armstrong1992/cockpit,sgallagher/cockpit,moraleslazaro/cockpit,larskarlitski/cockpit,moolitayer/cockpit,nmav/cockpit,SotolitoLabs/cockpit,denysvitali/cockpit,stefwalter/cockpit,darioajr/cockpit,moraleslazaro/cockpit,darioajr/cockpit,cockpituous/cockpit,arilivigni/cockpit,arilivigni/cockpit,nmav/cockpit,zigitax/cockpit,dperpeet/cockpit,harishanand95/cockpit,mareklibra/cockpit