Microscopic theory of critical folding nuclei and reconfiguration activation barriers in folding proteins