switch from stat() to fstat() when --enable-stat-at-open is set
fstat() has a lower overhead on some file systems due to the fact that it does not require walking the name space.
fstat() has a lower overhead on some file systems due to the fact that it does not require walking the name space.