[subset] fix incorrectly specified lock. Lock variable must have a name or it will immediately destruct.