Rory McIlroy claimed a one-shot lead at the halfway stage of the Deutsche Bank Championship thanks to a second consecutive 65 at TPC Boston.