sentence1: She may have forgotten to bolt the door into the passage when she went to bed, and have got up later, towards morning, and bolted it then."
sentence2: She might have forgotten to lock the door and done it hours later.