[java] Make java Threads follow how cpp/neko implement them, and let them be killed as the program exits