The arithmetic theory of loop groups. II: The Hilbert-modular case Chern numbers of kernel and cokernel bundles. Appendix to ''On the Kodaira dimension of the moduli space of curves. II. The even-genus case'' by J. Harris 