pkd_lib.c: fix fd leak for early-error cases in pkd_exec_hello
torture_pkd.c: comment on why separate functions