This a part of a series of Doctor Who expanded universe reconciliations. If you see a contradiction in the Doctor Who expanded universe, or just something that doesn't make sense, you can drop me an ask and I will come up with an explanation for it.
@presidentdisastraofgallifrey just asked me if I have an explanation for how the Tardis was able to take the Doctor and Susan into Gallifrey's past in Listen. As far as we knew at that point, Gallifrey was still timelocked as a part of the War. I have kinda two parts of explanation for this.
The more straightforward answer: In the audio story The Shoreditch Intervention (the last story in the Susan's War 1 boxset), it is shown that a Time Lock can be breached by an individual going back along their own timestream - both Susan and the Doctor use that to enter Earth, which has been timelocked for the duration of the War. So what Clara unintentionally did in Listen was basically the same thing - she guided the Tardis back along the Doctor's timestream to the barn outside of House Lungbarrow where he grew up.
Now that's kind of an incomplete answer because other parts of the Doctor Who EU have demonstrated that Gallifrey is extra-super-timelocked (that's part of what the Transduction Barriers do) and that the Doctor and Susan were able to do what they did as easily as they did with the ease they did it because of the Time War breaking reality (I'm thinking of Year Two of Titan's Eleventh Doctor comics, where breaking back into the Time War is a much harder venture).
And so this leads into my second part of my explanation. This does rely on my usual assumption that Faction Paradox's War in Heaven and the Last Great Time War are the same.
So it's a major plot point in the Cwej series that the War in Heaven was ended by something called the V-Time Experiment. What exactly the V-Time Experiment did isn't the clearest, but from what I can gather and infer, it used the existence of the Cwejen (a soldier species manufactured by the Time Lords during the War) as anchors in a large-scale restructuring of reality to reform the universe and history into one where Gallifrey wasn't at War. Since we know very definitively how the War ended - we saw it in The Day of the Doctor - I interpret the V-Time Experiment as how Gallifrey returned itself to the universe from its pocket dimension (something that is never really explained in the show proper).
So anyway, Gallifrey is returning to the universe proper during series 8, which means the V-Time Experiment is basically ongoing in the universe during that season. The necessity of rewriting the universe - however slightly it would be - would both be bringing Gallifrey back into the universe and temporarily weakening the Time Locks around it, meaning that the Tardis would be able to follow the Doctor's timestream back to that barn by House Lungbarrow much easier than it would otherwise and possible to do by mistake.