Hidden kinetic traps in multidomain folding highlight the presence of a misfolded but functionally competent intermediate