Properly GIT_EXPORT git_reference__alloc

It helps if you `GIT_EXPORT` things on Windows.