Fix problem where completing job has terminate RPC resent to nodes

Without this change, when the slurmctld daemon is reconfigured and
jobs are in completing state, then all nodes allocated to the job
are resent TERMINATE_JOB RPCs. After this change, only nodes which
have not processed the TERMINATE_JOB RPC are sent another one.