Fix a bug in ThreadExecutorPool.
While grabbing a task, the tasks number would be minus 1 although the task had not been grabbed yet. Now a fake count is available to make the tasks number looks good.