Foliations of Hilbert modular surfaces