It seems to me that it should be possible to fill the cabin of a cargo plane with halon and isolate and over-pressurize the cockpit with say nitrogen with the crew on O2. That would drive the smoke from the cockpit. You wouldn't need a hermetically sealed cockpit.
-drl