Libgit2: Support Cancel when clone

Signed-off-by: Frank Li <lznuaa@gmail.com>