In France, they still alow cockpit visits duting cruise on skippers discretion. Don't think that it is actually allowed, but it happens often, and that is a good thing.
It is just paranoia to ward off anyone from the flight-deck.
On 09/11, cockpit doors were also locked and there has been a ban on visits to the flightdeck in the US for years.
I still alow people to say hello inflight, albeit with the presence of a flight attendant.
I refuse to join any paranoia, and that includes flight-deck visit bansd and that yellow jacket madness.