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

It requires to have in TaskWorkerConfig.py :
config.TaskWorker.max_retry = 5 # Number of max retries
config.TaskWorker.retry_interval = [2, 4, 6, 8, 0] # For testing purposes I used small values, but for production we need to identify correct values for it.