Fix memory leak.

An extra reference is being held to DistArray's by register_blob.

This should be fixed at some point by using weak references or some
other form of indirection.