I had exactly the same thing, gently pushing the back panel in while pulling forward on some straps (old cycle rack straps actually) fitted around the back edge of the boot lid, with the key in the lock, did the trick.
(The recess that the latch clicks into faces you as you're stood behind the car)
A good greasing and a few good old Shropshire agricultural-style slams of the boot lid and it's never done it since.