SERVER-14668 fix locking issue in LockerImpl::dump