eta' mass across the chiral phase transition