vaapi: lock gfx when calling vaPutSurface