Port of 27523-make-stuck-build-detection-more-performant to EE
EE port of gitlab-org/gitlab-ce!9025
- Update stuck and outdated builds cleanup worker
- Update default configuration of stuck_ci_builds_worker cron interval
- Add exclusive lease for stuck_ci_builds_worker
- Add Gitlab::OptimisticLocking for build dropping
- Improve builds search query