Extend the testhelper to ease checking for process and Goroutine leakage
My recent refactoring of the catfile cache in !3853 (merged) has caused an incident due to a Goroutine leakage: gitlab-com/gl-infra/production#5566 (closed). We should improve our testhelper package to by default set up checks for leaking Go process and Goroutines.