Support resetting of Prometheus metrics between test runs
Adding the :prometheus tag to an rspec test will clear out memory-mapped files and reset the registry.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/39968
CE backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/5645
Edited by Stan Hu