dirmngr: Fix problems with the getsrv function.