runtests: remove leaks.out file between tests
startMonitoringThisThread: deadlock correction