tools: Move a function from gpg-wks-server to wks-util.c.