[compositor] Release buffers back to client when window is hidden