make output_syscall_prefix_to_fd use the child pid in the shm

getpid() will give the wrong answer when we call it from the
postmortem routine.