I don't exactly see how a stupid bit of red-painted steel bar "isolates" the flightdeck.
The only *real* security is STOP THEM GETTING ON IN THE FIRST PLACE!
Unfortunately, that takes something that governments and aviation authorities (especially the FAA, it would seem) haven't got.....