That isn’t a PT plot hole, it is an OT one. Unless you just chalk it up to him lying.
How is that an OT plot hole?
When do you believe Anakin Skywalker told Obi Wan “please give this to my son when he is old enough”? Was it before or after he was hidden from his father at birth, per Obi Wan in ROTJ?