Check if function is called from another canister

That was also my expectation but, according my test, it seems that each actor has its own principal.

if (owner_canister_A == caller_canister_B) cannot be met.

I might have missed something of course but this other post seems to lead to the same conclusion.