Add nqp::getpid for both JVM and Parrot.