More accurate uploading block list.

In the old algorithm, some blocks that have been uploaded before
may still be included in the uploading block list.
The new algorithm only includes the new blocks added locally.