Could a mixture be flammable in the open air and non-flammable under confinement?

Yes, but that wouldn't do the job. To store such a mixture safely, it would have to be kept in an absolutely airtight container, and it would have to absolutely fill that container (with no air space at the top). I suspect htat's not practical -- and with the slightest goof you'd have a fire on your own ship.