A Time Delay for the Cluster-lensed Quasar SDSS J1004+4112