If we are getting a deprecated dequeueBuffer call and return a fence, ma...

...ke sure it's waited for and closed

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>