Fixes an incorrect test in the combination of thread filtering and function tracing in drcachesim.
Adds -record_heap to the threadfilter test, though I had trouble reproducing the crash there. I tested the fix on a third_party app where it was hit but is unfortunately difficult to add as a regression test here.
Issue: #3048 (closed)