Initial pass at leak-detection on the unit tests. Due to quirks in jemalloc we need to run the leak check on both the main thread and the RT thread to get decent leak coverage. Change-Id: I0dce754aef5593f1ef5c3bed86e1168437a34b74