srm: Minor clean up in transfer protocol related methods

Also fixed a potential race condition by switching to a
Guava based cache.

Target: trunk
Require-notes: yes
Require-book: no
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/6127/