tsan: add acquire/release functions to java interface

they are required to handle synchronization on volatile/final fields