Guess you got this sorted but I had the same. If you poked a screwdriver into the latch (as if the latch thought it was closing around the pin at the bottom of the boot) did it lock around it? If not then its new latch - I picked one up from a breakers like new for £15 and took about 15 minutes to fit.