ThreadPoolQueuedSink pending tasks

- getNumOfPendingMessages() should return not 0 when there are pending tasks