[ci] add retries to stale action
We are seeing some http errors, a retry should help. Hook-based approach
suggested in https://github.com/octokit/octokit.js/issues/1069#retry
Example workflow: https://github.com/pytorch/pytorch/runs/6033246410?check_suite_focus=true
Pull Request resolved: https://github.com/pytorch/pytorch/pull/75855
Approved by: https://github.com/seemethere