MDL-36014 cohorts: Allow teachers to view cohorts

Added property 'visible' for cohorts. Unsetting it hides the cohort from users in the course.

AMOS BEGIN
 CPY [visible,core_moodle],[visible,core_cohort]
AMOS END
MDL-36014 cohorts: Support cohort visibility in Upload cohorts