vaapi_encode: Respect driver quirks around buffer destruction