MDL-41218 Object section_info calculates expensive data on demand only

Added phpdocs, removed unnecessary fields such as course and userid because they can be retrieved from modinfo
MDL-41219 course: Make properties of course_modinfo read-only

added phpdocs