- made code patching thread safe in check_clinit (use only 1 move)