Metal abundances of RR Lyrae stars in the bar of the Large Magellanic Cloud