Adds a new drcachesim memtrace option -max_global_trace_refs to supply a global trace size limit that does not kill the process. When the maximum is reached, the tracer omits traces for new threads entirely.
Add an online and an offline test for the feature.
Adds documentation.
Fixes #4462 (closed)