Lego is famous for its plastic bricks, but the business behind them started in a carpenter’s workshop with no toys in sight.