metadata: handle ABI version rebuild tracking for transient dependencies