srm,srm-client: Report failure for failed SRM v1 transfers

Fixes the following bugs:

- The srm client ignored failures to set the file status to 'Done'.

- The srm client changed the file status to 'Done' even when the
  transfer failed.

- The srm server did not accept 'Failed' as a file status even
  though the spec lists it as a valid status for setFileStatus.

I am requesting a merge to stable branches as this bug may report
failed uploads as having been successful.

Target: master
Request: 2.8
Request: 2.7
Request: 2.6
Require-notes: yes
Require-book: no
Acked-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Patch: http://rb.dcache.org/r/6629/
(cherry picked from commit 7e516df626977241271855398249cd75bffe65e3)
Merge pull request #447 from gbehrmann/fix/2.7/rb6629

srm,srm-client: Report failure for failed SRM v1 transfers