refs: Introduce git_reference_delete_byname()
Fix MSVC compilation warning