Add a primitive implementation for getppid().