Liquefaction of coal in a flowing-solvent reactor