Fix deadlock in movit.overlay transition.

Patch by Steinar Gunderson.