vaapi: lock gfx context on pre-cleanup