loadFile: expose require.extensions

Module under test may need `require.extensions` but currently it is not exposed.