thread aware of own lock via memory var