וַיֵּצֵ֧א אֲלֵהֶ֛ם ל֖וֹט הַפֶּ֑תְחָה וְהַדֶּ֖לֶת סָגַ֥ר אַחֲרָֽיו׃
Então Ló saiu-lhes à porta, fechando-a atrás de si,
Radak on Genesis
ויצא....סגר אחריו, either the person within the house locked the door from the inside, or Lot locked the door from the outside.
Rav Hirsch on Torah
דלת, Wurzel דלה schöpfen, die Türe schöpft ein und aus (s. K. 6, Raw Hirsch on Genesis 19: 10).