Modified getprotobyname/number to yield a block when using the async form.