Fix reduce phase waiting policy

Now slave truly waits all result streams to be sent before
reporting the termination to the master. Put the time constant
in the phase class.