simple java like synchronized(obj){ ... } locking