Critical attenuation of sound of liquid helium in restricted geometries