Uses messageHomeInstance to determine whether the target message originated locally (lookup by ID) or was replicated from another instance (lookup by sourceInstance + sourceMessageId). Supports N-instance federation and falls back to relay-sender lookup for backward compatibility with in-flight outbox entries.