Fix lockscreen being partially shown after orientation change

...en the unlock screen partial lockscreen is shown

onReleased is not delivered in all circumstances, so hook onCanceled too. Also
make sure to reset the y position of the lockscreen element when appropriate.