MDL-42892 logging: Remove usage of logtable from can_delete_course