Leading two-loop corrections to the Higgs boson self-couplings in models with extended scalar sectors