Fixes #6529 Throw an exception when codebase is older than schema to prevent broken race conditions