Simplify sending data through socket, avoid using one large buffer
This makes sending data to kinit easier, but also relays the environment to the restarted process correctly (ie. id doesn't lose it altogether), in line with the functionality of startProcessInternal
Depends on D29810
Signed-off-by: Jiří Paleček <jpalecek@web.de>