Add more dynamism to the test

* Inner class now implements Runnable: this allows to remove the bridge method, as the inner class does not return any value anymore
* Dump the locals into an arraylist that is given to the inner class

Issues:
* The synchronization is not good
* The increment has to be kept in the inner loop, while it is also deported to the inner class at the moment