fs: fix fs.readFileSync fd leak when get RangeError