MDL-20304 lesson: do not display gradebook link when in practice mode

Practice mode means the grades do not go to the gradebook, so do not
display the gradebook link at the end of the lesson
MDL-20304 lesson: add behat test for practice lessons