Two fixes when using ftruncate as the file-extension call:
- The ftruncate call can't set WT_FH.size, otherwise we'll skip those blocks when allocating blocks from the file,
- The file size has to be read inside of the lock being used to avoid races with writers.
Reference WT-1871.