vaapi: lock gfx context on pre-cleanup

another attempt to cope with the buggy buggy Intel driver