compositor: Consume buffers of surfaces that are not rendered on screen
This ensures that eglSwapBuffers() in clients doesn't block if a surface is not
rendered. Fixes: https://bugs.launchpad.net/bugs/1233564, https://bugs.launchpad.net/bugs/1292306.
Approved by Alberto Aguirre, PS Jenkins bot.