Add feature flag checks to `feature_available?` methods
Part of https://gitlab.com/gitlab-org/gitlab-ce/issues/50127, this doesn't yet perform the user/group check.
EE: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/7788
cc @marin
Edited by Robert Speicher