Measuring cosmogenic 9Li background in a reactor neutrino experiment