Fix assorted rspec failures due to stale, cached user permissions
Fix assorted rspec failures due to stale, cached user permissions

RequestStore is disabled in tests, but the Ability class was
caching user permissions based on the user and project ID of
previous test runs. Revise code to use RequestStore only if it
is active.

screenpages/gitlabhq,darkrasid/gitlabhq,dreampet/gitlab,htve/GitlabForChinese,icedwater/gitlabhq,jirutka/gitlabhq,allysonbarros/gitlabhq,LUMC/gitlabhq,dplarson/gitlabhq,axilleas/gitlabhq,dplarson/gitlabhq,htve/GitlabForChinese,darkrasid/gitlabhq,dreampet/gitlab,darkrasid/gitlabhq,LUMC/gitlabhq,iiet/iiet-git,jirutka/gitlabhq,mr-dxdy/gitlabhq,axilleas/gitlabhq,daiyu/gitlab-zh,screenpages/gitlabhq,openwide-java/gitlabhq,t-zuehlsdorff/gitlabhq,openwide-java/gitlabhq,dplarson/gitlabhq,daiyu/gitlab-zh,axilleas/gitlabhq,shinexiao/gitlabhq,mmkassem/gitlabhq,screenpages/gitlabhq,SVArago/gitlabhq,iiet/iiet-git,stoplightio/gitlabhq,mmkassem/gitlabhq,mr-dxdy/gitlabhq,jirutka/gitlabhq,icedwater/gitlabhq,dplarson/gitlabhq,SVArago/gitlabhq,dreampet/gitlab,openwide-java/gitlabhq,iiet/iiet-git,allysonbarros/gitlabhq,mr-dxdy/gitlabhq,htve/GitlabForChinese,stoplightio/gitlabhq,LUMC/gitlabhq,htve/GitlabForChinese,shinexiao/gitlabhq,mmkassem/gitlabhq,axilleas/gitlabhq,SVArago/gitlabhq,SVArago/gitlabhq,dreampet/gitlab,t-zuehlsdorff/gitlabhq,allysonbarros/gitlabhq,icedwater/gitlabhq,stoplightio/gitlabhq,t-zuehlsdorff/gitlabhq,icedwater/gitlabhq,darkrasid/gitlabhq,mr-dxdy/gitlabhq,stoplightio/gitlabhq,shinexiao/gitlabhq,iiet/iiet-git,daiyu/gitlab-zh,jirutka/gitlabhq,shinexiao/gitlabhq,daiyu/gitlab-zh,allysonbarros/gitlabhq,mmkassem/gitlabhq,screenpages/gitlabhq,t-zuehlsdorff/gitlabhq,LUMC/gitlabhq,openwide-java/gitlabhq