Expose libgit2 reference database backend for managed code refdb impls.

Follow up of #392