Fix deadlock issue when an effect ends.

Fix a bug introduced in the merge of the threading code into the
effects code.  A deadlock could occur when the last effect ended
and blanking data needed to be sent.