[java] Mutex implementation
[java] Added Gc