Proxy class, atomic method for Lock class