Made testng reporter thread-safe