debug: only do getpid() if we have to

Signed-off-by: Jens Axboe <axboe@kernel.dk>