loci: fix merge with of_object_attach changes

We don't want to do the wire buffer grow check when iterating over a list.
diff --git a/c_gen/templates/of_object.c b/c_gen/templates/of_object.c
index b0d3e14..5647d81 100644
--- a/c_gen/templates/of_object.c
+++ b/c_gen/templates/of_object.c
@@ -455,7 +455,7 @@
         return OF_ERROR_RANGE;
     }
 
-    object_child_attach(parent, child, 0, 0);
+    of_object_attach(parent, child, 0, child->length);
 
     return OF_ERROR_NONE;
 }
@@ -508,7 +508,7 @@
     /* Offset is relative to parent start */
     offset = (child->obj_offset - parent->obj_offset) +
         child->length;
-    object_child_attach(parent, child, offset, 0);
+    of_object_attach(parent, child, offset, child->length);
 
     return OF_ERROR_NONE;
 }