I can't remember why we added this in the first place: but in current master, we request a cs_main lock (not a try lock) every block tip update in order to get the best headers height / time.
This results in significant freezes in the GUI during IBD/catch-up.
This PR adds two atomic caches for the best headers height and time.
If we do a 0.14.1rc3, we should consider adding this.