[PATCH 6.1 116/132] gpio: sim: fix memory corruption when adding named lines and unnamed hogs