SERVER-136502ClosedFixed
Abandon IndexBuildsCoordinator::onStepUp if the stepup is abandoned
IndexBuildsCoordinator::onStepUp acquires a lock [in a loop|https://github.com/10gen/mongo/blob/022869cbd9f2c67ee6cf0a275ad2b92a49f64926/src/mongo/db/index_builds/index_builds_coordinator.cpp#L2271-L2284] to make sure we are primary. This loop starts before we are guaranteed to be a writable primary which necessitates the loop. If the stepUp is cancelled then this loop is not able to complete Subsequent stepups need to [wait for the previous stepUp to end|https://github.com/10gen/mongo/blob/d