srm: Fix a few IllegalStateTransition errors in srmLs

Besides supressing the errors, the code refactors state related
checks, renames the State#isFinalState method, and deletes the
static variant of the method (per reviewer request).

Target: trunk
Require-notes: no
Require-book: no
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/6238/
srm: Improve logging on pin failure

Adds file name to log messages for pinning failures, avoids
duplicate error logging, and propagates authorization errors
back to the client.

Target: trunk
Require-notes: no
Require-book: no
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/6239/
ssh2: fix int overflow with timeout

As mina sshd used int as timeout value, max long
converted into negative number and ignored.

Acked-by: Paul Millar
Target: master
Require-book: no
Require-notes: no