pvr: fix deadlock in TriggerEPGUpdate
vaapi: lock display when calling vaPutSurface
vaapi: call glFinish before closing context