Compton scattering in a converging fluid flow - Spherical near-critical accretion onto neutron stars