i had the same trouble on my nissan primera. by chance discovered if i locked the car then within 10 seconds aimed the key directly at the boot lockand pressed the key the boot locked . this fixed the problem for good. give it a try it may work for you.
b taylor, May 2007