DRI2Buffer-bo relationship fixes

A regression from c6103b7e3ab8ef7a72f94a6132d54a5b89b7e94d.
When updating to a new scanout buffer, we need to mark the previous
front buffer available to be the back buffer for the drawable.
That required some careful refcount handling.