Prevent updates between multiple major versions

Testplan:

- [x] Increment version in version.php for 1 major release => Update works
- [x] Increment version in version.php for 2 major releases => Update does not work

Ref https://github.com/owncloud/core/issues/11078