The u-plane integral, mock modularity and enumerative geometry