Revert "debug: only do getpid() if we have to"

This reverts commit 8037423f08649a7c3378dadf95327d6553105264.