Is patchy reionization an obstacle in detecting the primordial gravitational wave signal?