This idea is an old one in carpentry, called a through tenon or tongue joint. In the past, carpenters would pass the leg through the center of the tenon and insert a wooden wedge on top, so it would hold without nails or glue. As the load increased, it would tighten.