The conformational landscape of a serpin N-terminal subdomain facilitates folding and in-cell quality control