Move assignment under the lock