Fix throttling of "touch" for EE/ES
This fixes the throttling of touch
for EE. It's the EE version of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/15890, which in turn is based on https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/15891.