Don't copy the checkpoint size until we hold the lock (this probably
isn't a bug in the current system (the btree layer already ensures
there are no dirty block writes at this point), but it's still wrong.