LockWrapper for Go