commit.c: use ALLOC_GROW() in register_commit_graft()