Implement workerwaitchan, allowing Worker to finish processing.

Signed-off-by: Robert Xu <robxu9@gmail.com>