make the fs.statSync shim throw an error (consistent with Node.js)