lib/resolv.rb: pass rcode to OtherResolvError

This makes it possible to detect the reason for the failure.