I sometimes get this problem too, what I find is that if I push the door shut so that the Rear window rises , ensuring that the glassis within the slot at the top of the door ,so that there is no pressure on the glass itself, then push the door a little nuge again and it locks. Low tech, I know...