Base Station Beamforming Design in Near-Field XL-IRS Beam Training