@Murexway: It obviously detects when the aircraft is in landing config although EGPWS is still active.
About the FA being present in cockpit rule, if the FA hears someone banging from outside how will they prevent who-ever is in cockpit to stop denying entry? All FAs need to be taught how to use the cockpit lock switch operation?