Optical readout of coherent nuclear spins in diamond coupled to electronic spins in a thermal state