Merge pull request #354 from libgit2/cmn/panic-threading

Add Feature query support & panic if libgit2 is not thread-aware