refspec: prevent git_refspec__free() from segfaulting

Fix libgit2/libgit2sharp#247