... weil der Student noch nie [das Zimmer abzuschließen] bedauert/vergessen hat.
because the student yet never the room off-to-lock regretted/forgotten has
... because the student has never regretted/forgotten to lock the room.