Prevent updates between multiple major versions

Ref https://github.com/owncloud/core/issues/11078
Merge pull request #11163 from owncloud/check-for-updates-between-major-versions

Prevent updates between multiple major versions