Fix bug 988949: make upgrade checks run exclusively when enabled