ThreadState Module ported

Skiplist-Rotating ported into java
Port ThreadState Module to java without Garbage Collection Module
support.  (MINIMAL_GC support for thrst_critical_enter/exit())

Note: There were CAS ops in ptst_critical_enter(), but I didn't use
atomic ops in Java version currently (which may lead to  wrong results).
Not sure if thrst_list(ptst_list) is ported correctly.. need to review..