Fix a bug of processing large block list.
Ref count thread data in transfer.
Use block_exists() instead of stat_block() in do_write_chuck().