MDL-50837 mod_scorm: include locallib to access function