Consistent gravitational anomalies for chiral bosons