MDL-40463 libraries: Deprecate get_courseid_from_context()