[TSan] Share the code the setup code calling getrlim/setrlim with sanitizer_common