Fix broken multithreading in this tests (the object to synchronize on was the anonymous inner class not the main class)