Use tag_exists? in GitAccess#protected_tag?
This will fail until gitlab_git!81 (merged) is merged. Adding this should speed up checking for tags in Gitlab::GitAccess
as it no longer needs to retrieve the entire list of tags.
See https://gitlab.com/gitlab-org/gitlab-ce/issues/14280 for more information.