vaapi: lock display when calling vaPutSurface
vaapi: call glFinish before closing context
vaapi: correct dimensions of the various buffers
Merge pull request #5424 from FernetMenta/vaapifix

vaapi: stability