modboat,
having owned the type XXI's little brother, the u47 by Robbe, i fully understand your original statements, and your additional explanation, but i state that it isn't that "Or has no one invented this yet ???"... it is that nobody wants to burn down their house... even with a small vent "allowing air flow". that is not what i would consider "well ventilated".
getting and keeping a submarine working is not something that you do for 5 minutes before you put it in the water...
take the time and effort to disassemble the WTC every time you use it, and expose at least 6" of the tech rack... not just to vent the batteries, but to allow:
full inspection of the major workings (motors, servos, linkages) before and after running the boat, checking for any unusual wear of components (especially the seals).
removal of any condensation that may have collected while running the boat. nothing will rust a brushed motor faster than a teaspoon of water in a sealed WTC allowed to sit for a week.
if there is still a desire to leave the batteries in the tech rack, then tilt the nose down (or the stern up), and wire up an extension to the wiring harness, so you can mount a charging jack at the rear of the tech rack.
there is a reason why the wood and plastic ship stand that Robbe includes is designed to hold the two parts fully disconnected.