Add multi-thread test for java/mcache