Sorry to bring up an old post but I am now having this problem on my 04.
I removed the latch assembly for inspection and there just isn't much on there to go wrong.
Has anyone ever tried cleaning the motor? Maybe its getting tired and timing out before the gate is fully latched.