search: allow structural search when commit is alias for HEAD
Created by: keegancsmith
By checking which branches we will search on zoekt, we allow structural searching a specific commit if it is HEAD.
Tested manually. Automated tests defered for when we add structural search on any indexed branch.
Fixes https://github.com/sourcegraph/sourcegraph/issues/12012