WL-164 Made a class method CourseEnrollment.enrollment_is_closed()