Move an auto variable back into a scoped lock.