[PATCH 6.3 139/160] gpio: sim: fix memory corruption when adding named lines and unnamed hogs