child_process: fix handle passing