> How else are you solving this problem?
The tech companies I've worked at have started to build "gender neutral" bathrooms. They are a fully locked/enclosed rooms with sound proofing, i.e. no gaps at the bottom of the door. Sometimes you need to take a long session or maybe are not feeling great in the bathroom department (Probably TMI) and it's almost as good as WFH.