mesa: Ensure object refcount is null when destroying the buffer.