message: Fix AttributeError on LocalBuffer.__delete__ call in python xla client
diff: @@ -431,6 +431,8 @@ class LocalBuffer(object):
  def delete(self):
  if self.c_buffer is not None:
  + # Python may have freed c_api first.
  + if c_api:
  self._backend.delete_buffer(self.c_buffer)
  self.c_buffer = None
  