except for SS typical rail tubing vice the "wooden handrail" these parts are designed for.
I envision the locking part to not be a barrel bolt like this, but to be a sleeve (female part) that slides over the tubing and threads onto a fixed piece (male part) that joins the two pieces together and makes it all one rail when closed.