Prevent updates between multiple major versions

Ref https://github.com/owncloud/core/issues/11078