Suppressing the thermal lens effect by magnetic-field-induced mass transfer and phase separation in a magnetic fluid