CommitService.CommitsByMessage: work for obsolete revisions

As usual a direct hash or a keep-around could be obsolete
2 jobs for !112 with topic/stable/find-commits-obsolete in 1 minute and 45 seconds (queued for 2 seconds)
latest merge request