MDL-40464 libraries: Deprecate get_user_courses_bycap()