Fix local transfer
Retry policy in TW
Merge pull request #4347 from juztas/fixes

Automatic retries on submission failure and Local stageout fails at sites that use srmcp. Fixes #4234 #4337