Constraints on the time scale of nuclear breakup from thermal hard-photon emission