Solid feed treatment under supercritical conditions