MDL-38173 Courselib: Change upgrade step to use a normal version increment/check

This guarantees the upgrade step will be run at least once for all sites regardless
of upgrade from/to versions.