refs: add GIT_TRACE_REFS debugging mechanism