fix race condition in TestDisableEnsemble