reorder mutex locks in vdpau-presentation.c
drop turning_off flag, use thread cancelation instead