Oh easy - build it with bannisters/balustrade in place - get it signed off - remove them.
My Dads house contravenes various building regs relevant to the time he built it, but ... he built it... as he wasn't getting a mortgage on it, and none of it was so bad it would be ordered to be pulled down.
He has a landing with an insecure plexiglass barrier that isn't safe - two half-flight staircases with no bannister, and two doorways that are not regulation height and have an angled beam through the top of them - not an issue for him, he's a hobbit.
It might cause whoever has to sell the place some issues or whoever buys it, in the fullness of time, but it won't affect him!