accesslib: get_user_by_capability() - Fix last_access handling
accesslib: get_user_by_capability() - Fix last_access handling

We were missing $courseid, which is actually $context->instanceid.

MDL-12452

dilawar/moodle