Lifers transferred to mental hospitals can claim benefits