Update transaction.rb

Do not lookup results of gethostname() in DNS as it often does not exist - either because it is a desktop or the external name is different. This can cause a fairly considerable delay in startup (the longest single Gem delay in our large Sinatra application found through file load instrumentation) which is quite noticeable during development or test automation