MDL-33915 - prevent use of rebuild_course_cache during upgrade